diff options
author | Tim Kientzle <kientzle@gmail.com> | 2009-11-01 01:56:20 -0500 |
---|---|---|
committer | Tim Kientzle <kientzle@gmail.com> | 2009-11-01 01:56:20 -0500 |
commit | 5eec93b79577eccd20370bc440cad21f7592866c (patch) | |
tree | 8de6d5af2432f37276ff5afc0529ab898b050d8d /libarchive/config_freebsd.h | |
parent | 514e4f186bbd9553f08c9f0611d0fbd2f54c1014 (diff) | |
download | libarchive-5eec93b79577eccd20370bc440cad21f7592866c.tar.gz |
Make the __FBSDID() handling more platform-agnostic by using
HAVE_SYS_CDEFS_H to control the inclusion of sys/cdefs.h and
defining a fake __FBSDID() macro if we need one. In particular,
this deals a lot more gracefully with systems that are not
FreeBSD but use FreeBSD-derived system headers.
See Issue 46 on libarchive.googlecode.com for discussion.
Submitted by: cpr420
SVN-Revision: 1565
Diffstat (limited to 'libarchive/config_freebsd.h')
-rw-r--r-- | libarchive/config_freebsd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libarchive/config_freebsd.h b/libarchive/config_freebsd.h index 2ebfe209..f8a5b742 100644 --- a/libarchive/config_freebsd.h +++ b/libarchive/config_freebsd.h @@ -118,6 +118,7 @@ #define HAVE_STRUCT_STAT_ST_FLAGS 1 #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1 #define HAVE_SYMLINK 1 +#define HAVE_SYS_CDEFS_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_SELECT_H 1 #define HAVE_SYS_STAT_H 1 |