]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
build: src/arch/ppc.c FreeBSD build break
authorAndrew Solomon <asolomon@us.ibm.com>
Mon, 3 Apr 2017 17:04:21 +0000 (17:04 +0000)
committerAndrew Solomon <asolomon@us.ibm.com>
Mon, 3 Apr 2017 17:04:21 +0000 (17:04 +0000)
The #include file <sys/auxv.h> is present on linux but
not FreeBSD.  Move it under the #if __linux__ directive.

Signed-off-by: Andrew Solomon <asolomon@us.ibm.com>
src/arch/ppc.c

index eea5968bc1eb88c01f3becf89413c2a1aa32c6aa..f21e2fe17001562f37bd4352c790836b0a30c039 100644 (file)
@@ -13,9 +13,9 @@
 int ceph_arch_ppc_crc32 = 0;
 
 #include <stdio.h>
-#include <sys/auxv.h>
 
 #if __linux__ && __powerpc64__
+#include <sys/auxv.h>
 #include <asm/cputable.h>
 #endif /* __linux__ && __powerpc64__ */