aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-16 20:54:45 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-16 20:54:45 +0000
commit12965babde85f44491b63a3bcfd1006c868ee274 (patch)
tree965f10a1aefb1b97bd8ce0ee915a6747742b7c3b /porting.h
parentsort headers alphabetically (diff)
downloadpax-utils-12965babde85f44491b63a3bcfd1006c868ee274.tar.gz
pax-utils-12965babde85f44491b63a3bcfd1006c868ee274.tar.bz2
pax-utils-12965babde85f44491b63a3bcfd1006c868ee274.zip
pull in alloca.h for all hosts but freebsd
Diffstat (limited to 'porting.h')
-rw-r--r--porting.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/porting.h b/porting.h
index 8483f5f..23ed770 100644
--- a/porting.h
+++ b/porting.h
@@ -1,7 +1,7 @@
/*
* Copyright 2005-2007 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.34 2008/11/16 12:16:21 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/porting.h,v 1.35 2008/11/16 20:54:45 vapier Exp $
*
* Copyright 2005-2007 Ned Ludd - <solar@gentoo.org>
* Copyright 2005-2007 Mike Frysinger - <vapier@gentoo.org>
@@ -35,8 +35,10 @@
#include <sys/stat.h>
#include <sys/types.h>
#include "elf.h"
-#if defined(__linux__)
+#if !defined(__FreeBSD__)
# include <alloca.h>
+#endif
+#if defined(__linux__)
# include <byteswap.h>
# include <endian.h>
#elif defined(__FreeBSD__)