On Fri, Jun 19, 2020 at 10:44:36AM -0600, alan somers wrote:
Thanks. I didn't realize that #include <config.h> must always come first. I'm used to the FreeBSD convention, where sys/* comes first. -Alan
I believe the actual reason for this (beyond our preferences!) is that config.h, generated by autoconf, can define symbols which affect what is enabled by system headers. The canonical example is _GNU_SOURCE, defined by config.h on Linux, which enables glibc extensions in subsequent header files. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org