[Vm-dev] latest sources removal platforms/unix/vm/sunos.h

stes@PANDORA.BE stes at telenet.be
Mon Nov 9 07:48:38 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Thanks for the interesting link to 

https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

To quote from that page:

"You should define these macros by using #define preprocessor directives at the top of your source code files. These directives must come before any #include of a system header file. It is best to make them the very first thing in the file, preceded only by comments. You could also use the -D option to GCC, but it's better if you make the source files indicate their own meaning in a self-contained way. "

Note the fact that it says:  "before any #include of a system header file".

So the change that I observe (because it used to work) is perhaps due to
reorganizing the source code so that the "before any #include" is no longer so.

Also this is of course very fragile, perhaps using the -D option in the mvm
script (which is an alternative that I tested and it works) can be done.

In fact the issue could be due to 

AC_SYS_LARGEFILE

in the platforms/unix/config/configure.ac

which currently seems to set in the config.h.in the _FILE_OFFSET_BITS.

However perhaps AC_SYS_LARGEFILE could be instructed to not change the
config.h header but rather just add the -D option to the CFLAGS.

David Stes

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJfqPQ3AAoJEAwpOKXMq1MaFwIH/RP9Yg6cXLZl2smd+QlQGHoe
4iR0tDzkcSImSmIySY/2FS+4eHKvodMfNkIbRTRDhgvbFsV9ajKKi/m7oCAqgt6f
OTES0SXxZNZojDinM18IelVbnVZ0S+9MzPw1LXBrToqhKJ+PfPK+kHBnBbSMcpHF
/29pyFT4x3nhG7xzACCCHNiZ2NN2LJdf7u8TYf41kt6EL7SRvsaR3cwK7kRJmli2
dmtrUGBN0VJ4bxYIEi4ztvbtaOCCqLbIQRJ+5e9Qjuq7xjK+H5ZPDyJgU/aZHRrm
VW/i1ne7r/1zLqR4ulECLqX9rYGrm19ItcUka8cU/0dEi9d1HVX5C/zy1ut3QfI=
=ftSh
-----END PGP SIGNATURE-----


More information about the Vm-dev mailing list