diff options
author | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-21 21:04:53 +0000 |
---|---|---|
committer | fxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-21 21:04:53 +0000 |
commit | db019aef86f8fd438b1e6c8d11411f4df6a0bf4d (patch) | |
tree | 0e32b9023b9f549b2e9e8d682eeee444be10c17a /libgfortran/runtime | |
parent | 5e7a0a2305074f981877658ce8757f724543175b (diff) | |
download | gcc-db019aef86f8fd438b1e6c8d11411f4df6a0bf4d.tar.gz |
* runtime/error.c: Include sys/time.h before sys/resource.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121036 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/runtime')
-rw-r--r-- | libgfortran/runtime/error.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libgfortran/runtime/error.c b/libgfortran/runtime/error.c index e6713d2cc4d..afd6a217269 100644 --- a/libgfortran/runtime/error.c +++ b/libgfortran/runtime/error.c @@ -48,14 +48,16 @@ Boston, MA 02110-1301, USA. */ #include <stdlib.h> #endif -#ifdef HAVE_SYS_RESOURCE_H -#include <sys/resource.h> -#endif - #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif +/* <sys/time.h> has to be included before <sys/resource.h> to work + around PR 30518; otherwise, MacOS 10.3.9 headers are just broken. */ +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif + #include "libgfortran.h" #ifdef __MINGW32__ |