Mercurial > gnulib
comparison lib/stdlib.in.h @ 39240:26058d7353f4
stdlib: Fix compilation error on OpenIndiana.
* lib/stdlib.in.h: Before including <sys/loadavg.h>, include
<sys/time.h>.
* m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
* m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 03 Feb 2018 14:05:45 +0100 |
parents | 24e347e0e326 |
children | beb2ad957aca |
comparison
equal
deleted
inserted
replaced
39239:31d885413cfb | 39240:26058d7353f4 |
---|---|
45 # include <sys/wait.h> | 45 # include <sys/wait.h> |
46 #endif | 46 #endif |
47 | 47 |
48 /* Solaris declares getloadavg() in <sys/loadavg.h>. */ | 48 /* Solaris declares getloadavg() in <sys/loadavg.h>. */ |
49 #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ | 49 #if (@GNULIB_GETLOADAVG@ || defined GNULIB_POSIXCHECK) && @HAVE_SYS_LOADAVG_H@ |
50 /* OpenIndiana has a bug: <sys/time.h> must be included before | |
51 <sys/loadavg.h>. */ | |
52 # include <sys/time.h> | |
50 # include <sys/loadavg.h> | 53 # include <sys/loadavg.h> |
51 #endif | 54 #endif |
52 | 55 |
53 /* Native Windows platforms declare mktemp() in <io.h>. */ | 56 /* Native Windows platforms declare mktemp() in <io.h>. */ |
54 #if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) | 57 #if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) |