Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | |
| 2 | Include config.h so we get the defines available for subsequent |
| 3 | include files |
| 4 | |
| 5 | Fixes errors like |
| 6 | |
| 7 | | In file included from /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/sysroots/beaglebone/usr/include/string.h:634:0, |
| 8 | | from /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.c:36: |
| 9 | | /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.h:29:7: error: expected identifier or '(' before '__extension |
| 10 | __' |
| 11 | | char *strndup (const char *s, size_t n); |
| 12 | | ^ |
| 13 | | /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/libmtp/1.1.5-r0/libmtp-1.1.5/src/util.c:111:7: error: expected identifier or '(' before '__extensio |
| 14 | n__' |
| 15 | | char *strndup (const char *s, size_t n) |
| 16 | | ^ |
| 17 | | make[2]: *** [libmtp_la-util.lo] Error 1 |
| 18 | |
| 19 | |
| 20 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 21 | |
| 22 | Upstream-Status: Pending |
| 23 | |
| 24 | Index: libmtp-1.1.5/src/util.c |
| 25 | =================================================================== |
| 26 | --- libmtp-1.1.5.orig/src/util.c 2011-01-10 05:37:21.000000000 -0800 |
| 27 | +++ libmtp-1.1.5/src/util.c 2014-09-03 23:50:44.703563888 -0700 |
| 28 | @@ -22,6 +22,8 @@ |
| 29 | * Boston, MA 02111-1307, USA. |
| 30 | */ |
| 31 | |
| 32 | +#include "config.h" |
| 33 | + |
| 34 | /* MSVC does not have these */ |
| 35 | #ifndef _MSC_VER |
| 36 | #include <sys/time.h> |