2225
|
1 |
--- libmtp-1.0.1-orig/configure.ac 2009-10-23 01:08:15.464268552 -0400
|
|
2 |
+++ libmtp-1.0.1/configure.ac 2009-10-23 01:10:04.270117940 -0400
|
|
3 |
@@ -96,6 +96,27 @@
|
486
|
4 |
# (No need to use AC_SUBST on this default substituted environment variable.)
|
2225
|
5 |
#CFLAGS="$CFLAGS -Wall -Wmissing-prototypes"
|
486
|
6 |
|
|
7 |
+AC_MSG_CHECKING([if inttypes has u_int32_t etc])
|
|
8 |
+AC_COMPILE_IFELSE(
|
|
9 |
+ [AC_LANG_PROGRAM(
|
|
10 |
+ [[
|
|
11 |
+#if HAVE_SYS_TYPES_H
|
|
12 |
+#include <sys/types.h>
|
|
13 |
+#endif
|
|
14 |
+#if HAVE_INTTYPES_H
|
|
15 |
+#include <inttypes.h>
|
|
16 |
+#endif
|
|
17 |
+#if HAVE_UNISTD_H
|
|
18 |
+#include <unistd.h>
|
|
19 |
+#endif
|
|
20 |
+ ]],[[
|
|
21 |
+ u_int32_t s;
|
|
22 |
+ sleep((unsigned int)s);
|
|
23 |
+ ]]
|
|
24 |
+ )],
|
|
25 |
+ [AC_DEFINE(HAVE_U_INT_TYPES, 1, [Define to 1 if have u_int32_t types etc])
|
|
26 |
+ AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
|
2225
|
27 |
+
|
486
|
28 |
# Output files
|
|
29 |
|
|
30 |
# Create a stdint.h-like file containing size-specific integer definitions
|
2225
|
31 |
--- libmtp-1.0.1-orig/examples/common.h 2009-10-23 01:11:22.968773695 -0400
|
|
32 |
+++ libmtp-1.0.1/examples/common.h 2009-10-23 01:11:55.749290619 -0400
|
|
33 |
@@ -32,3 +32,10 @@
|
486
|
34 |
// Only if using MSVC...
|
|
35 |
#include "..\windows\getopt.h"
|
|
36 |
#endif
|
|
37 |
+#ifndef HAVE_U_INT_TYPES
|
|
38 |
+typedef uint8_t u_int8_t;
|
|
39 |
+typedef uint16_t u_int16_t;
|
|
40 |
+typedef uint32_t u_int32_t;
|
|
41 |
+typedef uint64_t u_int64_t;
|
|
42 |
+#endif
|
2225
|
43 |
+
|