Solaris 9 has no stdint.h, ugh. Reported by a couple of people most

recently Timothy Larson.
This commit is contained in:
Nicholas Marriott
2010-09-07 19:32:58 +00:00
parent afcc29a51d
commit f54482a461
6 changed files with 19 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $Id: compat.h,v 1.25 2010-06-06 13:00:46 tcunha Exp $ */
/* $Id: compat.h,v 1.26 2010-09-07 19:32:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -85,6 +85,12 @@ typedef uint64_t u_int64_t;
#include <imsg.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#else
#include <inttypes.h>
#endif
#ifdef HAVE_BROKEN_CMSG_FIRSTHDR
/* CMSG_FIRSTHDR broken on OS X. */
#undef CMSG_FIRSTHDR