]> sourceware.org Git - newlib-cygwin.git/commit
Make sure to have full configuration info in sys/_types.h.
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 18 May 2016 19:05:31 +0000 (21:05 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 18 May 2016 19:05:31 +0000 (21:05 +0200)
commit72ded594471affbad3950f7a7a622304605be98f
tree8e6a4f7431dd36b6245e8107503043d3bd2070c9
parent5c02bcc086a96b174e1b9e1445a4a1770070107a
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>
newlib/libc/include/sys/_types.h
This page took 0.032592 seconds and 5 git commands to generate.