blob: 0b391ed8929a2fc37cdce4e489a56abd54651ad7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
2021-01-08: Quick fix to a compilation failure especially on 32 bit systems
--- socat-1.7.4.0/compat.h
+++ socat-1.7.4.0/compat.h
@@ -134,6 +134,8 @@
# define F_uint64_t "%u"
# elif HAVE_BASIC_UINT64_T==6
# define F_uint64_t "%lu"
+# elif HAVE_BASIC_UINT64_T==8
+# define F_uint64_t "%llu"
# else
# error "HAVE_BASIC_UINT64_T is out of range:" HAVE_BASIC_UINT64_T
# endif
@@ -147,7 +149,7 @@
# elif HAVE_BASIC_INT16_T==3
# define F_int16_t "%d"
# elif HAVE_BASIC_INT16_T==5
-# define F_int16_t "%l"
+# define F_int16_t "%ld"
# else
# error "HAVE_BASIC_INT16_T is out of range:" HAVE_BASIC_INT16_T
# endif
@@ -161,7 +163,7 @@
# elif HAVE_BASIC_INT32_T==3
# define F_int32_t "%d"
# elif HAVE_BASIC_INT32_T==5
-# define F_int32_t "%l"
+# define F_int32_t "%ld"
# else
# error "HAVE_BASIC_INT32_T is out of range:" HAVE_BASIC_INT32_T
# endif
@@ -175,7 +177,9 @@
# elif HAVE_BASIC_INT64_T==3
# define F_int64_t "%d"
# elif HAVE_BASIC_INT64_T==5
-# define F_int64_t "%l"
+# define F_int64_t "%ld"
+# elif HAVE_BASIC_INT64_T==7
+# define F_int64_t "%lld"
# else
# error "HAVE_BASIC_INT64_T is out of range:" HAVE_BASIC_INT64_T
# endif
|