Paul Wouters 80e06e
diff -Naur socat-1.7.4.0-orig/compat.h socat-1.7.4.0/compat.h
Paul Wouters 80e06e
--- socat-1.7.4.0-orig/compat.h	2021-01-03 13:23:22.000000000 -0500
Paul Wouters 80e06e
+++ socat-1.7.4.0/compat.h	2021-01-04 14:07:30.229747181 -0500
Paul Wouters 80e06e
@@ -134,6 +134,8 @@
Paul Wouters 80e06e
 #    define F_uint64_t "%u"
Paul Wouters 80e06e
 #  elif HAVE_BASIC_UINT64_T==6
Paul Wouters 80e06e
 #    define F_uint64_t "%lu"
Paul Wouters 80e06e
+#  elif HAVE_BASIC_UINT64_T==8
Paul Wouters 80e06e
+#    define F_uint64_t "%llu"
Paul Wouters 80e06e
 #  else
Paul Wouters 80e06e
 #    error "HAVE_BASIC_UINT64_T is out of range:" HAVE_BASIC_UINT64_T
Paul Wouters 80e06e
 #  endif
Paul Wouters 80e06e
@@ -147,7 +149,7 @@
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT16_T==3
Paul Wouters 80e06e
 #    define F_int16_t "%d"
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT16_T==5
Paul Wouters 80e06e
-#    define F_int16_t "%l"
Paul Wouters 80e06e
+#    define F_int16_t "%ld"
Paul Wouters 80e06e
 #  else
Paul Wouters 80e06e
 #    error "HAVE_BASIC_INT16_T is out of range:" HAVE_BASIC_INT16_T
Paul Wouters 80e06e
 #  endif
Paul Wouters 80e06e
@@ -161,7 +163,7 @@
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT32_T==3
Paul Wouters 80e06e
 #    define F_int32_t "%d"
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT32_T==5
Paul Wouters 80e06e
-#    define F_int32_t "%l"
Paul Wouters 80e06e
+#    define F_int32_t "%ld"
Paul Wouters 80e06e
 #  else
Paul Wouters 80e06e
 #    error "HAVE_BASIC_INT32_T is out of range:" HAVE_BASIC_INT32_T
Paul Wouters 80e06e
 #  endif
Paul Wouters 80e06e
@@ -175,7 +177,9 @@
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT64_T==3
Paul Wouters 80e06e
 #    define F_int64_t "%d"
Paul Wouters 80e06e
 #  elif HAVE_BASIC_INT64_T==5
Paul Wouters 80e06e
-#    define F_int64_t "%l"
Paul Wouters 80e06e
+#    define F_int64_t "%ld"
Paul Wouters 80e06e
+#  elif HAVE_BASIC_INT64_T==7
Paul Wouters 80e06e
+#    define F_int64_t "%lld"
Paul Wouters 80e06e
 #  else
Paul Wouters 80e06e
 #    error "HAVE_BASIC_INT64_T is out of range:" HAVE_BASIC_INT64_T
Paul Wouters 80e06e
 #  endif