examples: fix compilation issues

This commit is contained in:
Yang Tse
2012-12-05 00:37:57 +01:00
parent b908376bef
commit 23f8dca6fb
3 changed files with 12 additions and 8 deletions

View File

@@ -27,7 +27,11 @@
# ifdef __VMS
typedef int intptr_t;
# endif
# include <stdint.h>
# if defined(_AIX) || defined(__sgi) || defined(__osf)
typedef long intptr_t;
# else
# include <stdint.h>
# endif
# include <unistd.h>
#endif
#include <sys/types.h>