]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: config-h.in.cmake: avoid redefinition warnings
authorKefu Chai <kchai@redhat.com>
Tue, 12 Apr 2016 03:19:06 +0000 (11:19 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 22 Apr 2016 13:33:55 +0000 (21:33 +0800)
when compiling python bindings, the included "pyconfig.h" also defines
some of the macros which are duplicated with our versions in acconfig.h.
so do not define them if they are already defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/config-h.in.cmake

index 059e0a24d73e91e6b7b164a061cab72f89efb4ca..e908e85f43baa3c49b5fd1f7755e94caefc4be67 100644 (file)
 #cmakedefine HAVE_SYS_VFS_H 1
 
 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
+#ifndef HAVE_SYS_WAIT_H
 #cmakedefine HAVE_SYS_WAIT_H
+#endif
 
 /* Define to 1 if you have the <sys/xattr.h> header file. */
 #cmakedefine HAVE_SYS_XATTR_H
 
+#ifndef HAVE_UNISTD_H
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H
+#endif
 
+#ifndef HAVE_UTIME_H
 /* Define to 1 if you have the <utime.h> header file. */
 #cmakedefine HAVE_UTIME_H
+#endif
 
 /* Define if you have the <execinfo.h> header file. */
 #cmakedefine HAVE_EXECINFO_H