]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Both cpio/test/test.h and cpio/cpio_platform.h try to define __FBSDID
authorTim Kientzle <kientzle@gmail.com>
Wed, 18 Feb 2009 21:32:02 +0000 (16:32 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 18 Feb 2009 21:32:02 +0000 (16:32 -0500)
on non-FreeBSD platforms.  Avoid conflicts.

SVN-Revision: 661

cpio/cpio_platform.h

index dbfb1e60700974a3f0d36887d363308e35904eb7..c3104a71c9f46d6d9fc92997e27dcf0df87eeee3 100644 (file)
@@ -48,7 +48,7 @@
 /* No non-FreeBSD platform will have __FBSDID, so just define it here. */
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>  /* For __FBSDID */
-#else
+#elif !defined(__FBSDID)
 /* Just leaving this macro replacement empty leads to a dangling semicolon. */
 #define        __FBSDID(a)     struct _undefined_hack
 #endif