4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-29 10:30:50 +08:00
Corinna Vinschen 72ded59447 Make sure to have full configuration info in sys/_types.h.
The following testcase:

  $ cat > test.c <<EOF
  #include <sys/select.h>
  #include <sys/time.h>
  EOF
  $ gcc -c test.c

emits the following error:

  /usr/include/sys/reent.h:276:3: error: expected specifier-qualifier-list befor
e ‘_fpos64_t’
     _fpos64_t _EXFNPTR(_seek64, (struct _reent *, _PTR, _fpos64_t, int));
     ^

The reason is that the load order from sys/select.h includes sys/_types.h
before sys/config.h has been included from anywhere else.  sys/_types.h
defines _fpos64_t only if __LARGE64_FILES is defined, but it never is in
this scenario.  So sys/_types.h has to make sure to get the configuration
info by itself.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2016-05-18 21:05:31 +02:00
..
2016-04-04 10:25:27 -05:00
2016-03-17 21:08:50 -05:00
2016-03-17 21:08:56 -05:00
2015-08-27 12:50:25 +02:00
2015-07-06 14:58:51 -05:00
2016-03-17 21:09:01 -05:00
2016-04-04 10:25:29 -05:00
2016-03-17 21:09:10 -05:00
2016-03-17 21:09:13 -05:00