diff options
Diffstat (limited to 'lib/stdlib.in.h')
| -rw-r--r-- | lib/stdlib.in.h | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 41a1969d..3a3796d1 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -1,6 +1,6 @@  /* A GNU-like <stdlib.h>. -   Copyright (C) 1995, 2001-2004, 2006-2017 Free Software Foundation, Inc. +   Copyright (C) 1995, 2001-2004, 2006-2018 Free Software Foundation, Inc.     This program is free software: you can redistribute it and/or     modify it under the terms of either: @@ -56,11 +56,14 @@  /* Solaris declares getloadavg() in <sys/loadavg.h>.  */  #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ +/* OpenIndiana has a bug: <sys/time.h> must be included before +   <sys/loadavg.h>.  */ +# include <sys/time.h>  # include <sys/loadavg.h>  #endif  /* Native Windows platforms declare mktemp() in <io.h>.  */ -#if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +#if 0 && (defined _WIN32 && ! defined __CYGWIN__)  # include <io.h>  #endif @@ -96,7 +99,7 @@ struct random_data  # endif  #endif -#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) +#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !(defined _WIN32 && ! defined __CYGWIN__)  /* On Mac OS X 10.3, only <unistd.h> declares mkstemp.  */  /* On Mac OS X 10.5, only <unistd.h> declares mkstemps.  */  /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt.  */ | 
