summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cpio/cpio-2.11/statdef.patch
blob: a6b8e82a0bff2620458e68cec07c35a78df70ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Avoid multiple stat definitions
Patch taken from cpio mailing list posting 2010-03-19

Upstream-Status: Pending

Signed-off-by: Scott Garman <scott.a.garman@intel.com>

diff -urN cpio-2.11.orig/src/filetypes.h cpio-2.11/src/filetypes.h
--- cpio-2.11.orig/src/filetypes.h	2010-02-12 02:19:23.000000000 -0800
+++ cpio-2.11/src/filetypes.h	2010-07-23 13:17:25.000000000 -0700
@@ -82,4 +82,6 @@
 #define lstat stat
 #endif
 int lstat ();
+#ifndef stat
 int stat ();
+#endif