summaryrefslogtreecommitdiff
path: root/sysutils/attr/patches/patch-ab
blob: 23eb729f8044c6c2c0c71ce8db3a84c6dcb64f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ab,v 1.1 2014/07/22 08:23:31 manu Exp $

Portability fix: <alloca.h> is Linux specific

--- libattr/attr_copy_action.c.orig	2014-06-27 11:43:54.000000000 +0200
+++ libattr/attr_copy_action.c	2014-06-27 11:45:05.000000000 +0200
@@ -14,9 +14,11 @@
   You should have received a copy of the GNU Lesser General Public License
   along with this manual.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#if defined(linux)
 #include <alloca.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>