]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
IMPORT: slz: use inttypes.h instead of stdint.h
authorWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:44:52 +0000 (08:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 May 2021 06:44:52 +0000 (08:44 +0200)
stdint.h is not as portable as inttypes.h. It doesn't exist at least
on AIX 5.1 and Solaris 7, while inttypes.h is present there and does
include stdint.h on platforms supporting it.

This is equivalent to libslz upstream commit e36710a ("slz: use
inttypes.h instead of stdint.h")

include/import/slz.h
src/slz.c

index 0f284e3033cddb26a9b79757dd844380c7cd2144..d7d4863509fa35ef41bd2c398bac665de4cd4866 100644 (file)
@@ -25,7 +25,7 @@
 #ifndef _SLZ_H
 #define _SLZ_H
 
-#include <stdint.h>
+#include <inttypes.h>
 
 /* We have two macros UNALIGNED_LE_OK and UNALIGNED_FASTER. The latter indicates
  * that using unaligned data is faster than a simple shift. On x86 32-bit at
index 231e09c0913bf594c8bb572e364b6c7b7cb6b10d..8eb01174d931e5189f51218f8725251f6e8cce37 100644 (file)
--- a/src/slz.c
+++ b/src/slz.c
@@ -22,7 +22,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#include <stdint.h>
+#include <inttypes.h>
 #include <stdio.h>
 #include <string.h>
 #include <import/slz.h>