diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-02-10 14:55:21 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2015-02-12 14:10:10 -0800 |
commit | ed340abc37b07cb9fc788ae77d837088c54cd16a (patch) | |
tree | defbc6afc8e33e3a796607a8c0a969ea36324b02 /src/linux_sysfs.c | |
parent | 6329ef9e5d6f36ca3f7258279f6640037b71926a (diff) |
Include config.h before any other headers.
The former has a series of defines which in some cases are crusial to be
set before including any system headers.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/linux_sysfs.c')
-rw-r--r-- | src/linux_sysfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c index 08c9971..50d94cf 100644 --- a/src/linux_sysfs.c +++ b/src/linux_sysfs.c @@ -34,6 +34,10 @@ #define _GNU_SOURCE +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdlib.h> #include <string.h> #include <stdio.h> @@ -57,10 +61,6 @@ #define iopl(x) -1 #endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #ifdef HAVE_MTRR #include <asm/mtrr.h> #include <sys/ioctl.h> |