Fix compilation warnings and errors on OpenSolaris caused by a few of
our source feature macros.
This commit is contained in:
parent
55339f7d8a
commit
bc58be1c91
@ -36,7 +36,7 @@
|
|||||||
/* Need this to include <libc.h> on OS X */
|
/* Need this to include <libc.h> on OS X */
|
||||||
#define _DARWIN_C_SOURCE
|
#define _DARWIN_C_SOURCE
|
||||||
/* Use this to get posix_memalign */
|
/* Use this to get posix_memalign */
|
||||||
#if defined HAVE_POSIX_MEMALIGN
|
#if defined HAVE_POSIX_MEMALIGN && !defined __sun
|
||||||
# undef _XOPEN_SOURCE
|
# undef _XOPEN_SOURCE
|
||||||
# define _XOPEN_SOURCE 600
|
# define _XOPEN_SOURCE 600
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -22,6 +22,8 @@
|
|||||||
#define _INCLUDE_POSIX_SOURCE
|
#define _INCLUDE_POSIX_SOURCE
|
||||||
/* Needed for fgets_unlocked() */
|
/* Needed for fgets_unlocked() */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
|
/* Needed for getc_unlocked() on OpenSolaris */
|
||||||
|
#define __EXTENSIONS__
|
||||||
|
|
||||||
#if defined HAVE_STDINT_H
|
#if defined HAVE_STDINT_H
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user