commit | a1bd1faeebd03825677d111a1350ee04d625f165 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Mar 29 17:26:33 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Apr 01 07:44:56 2019 +0200 |
tree | 756e08ac14b772856878ee226c844e1639afb4f8 | |
parent | 7b5654f54a1dec8a29d3186f8ed8c7e718279183 [diff] |
BUILD: use inttypes.h instead of stdint.h I found on an (old) AIX 5.1 machine that stdint.h didn't exist while inttypes.h which is expected to include it does exist and provides the desired functionalities. As explained here, stdint being just a subset of inttypes for use in freestanding environments, it's probably always OK to switch to inttypes instead: https://pubs.opengroup.org/onlinepubs/009696799/basedefs/stdint.h.html Also it's even clearer here in the autoconf doc : https://www.gnu.org/software/autoconf/manual/autoconf-2.61/html_node/Header-Portability.html "The C99 standard says that inttypes.h includes stdint.h, so there's no need to include stdint.h separately in a standard environment. Some implementations have inttypes.h but not stdint.h (e.g., Solaris 7), but we don't know of any implementation that has stdint.h but not inttypes.h"
diff --git a/contrib/wireshark-dissectors/peers/packet-happp.c b/contrib/wireshark-dissectors/peers/packet-happp.c index 4daf0aa..980e290 100644 --- a/contrib/wireshark-dissectors/peers/packet-happp.c +++ b/contrib/wireshark-dissectors/peers/packet-happp.c
@@ -22,7 +22,7 @@ */ #include <stdio.h> -#include <stdint.h> +#include <inttypes.h> #include <inttypes.h> #include <arpa/inet.h>