]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
utils: Include stdint.h
authorTobias Brunner <tobias@strongswan.org>
Thu, 14 Sep 2017 09:59:30 +0000 (11:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Sep 2017 11:24:39 +0000 (13:24 +0200)
Recent releases of glibc don't include the full stdint.h header in some
network headers included by utils.h.  So uintptr_t might not be defined.
Since we use fixed width integers, including the latter, all over the place
we make sure the complete file is included.

Fixes #2425.

src/libstrongswan/utils/utils.h

index 33b8d1956bc476056ef14a7b890c78de592b6de0..ec994bfc5b20b2a1826f0e437497d195f3a91fcf 100644 (file)
@@ -25,6 +25,7 @@
 #define _GNU_SOURCE
 #include <sys/types.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <stddef.h>
 #include <sys/time.h>
 #include <string.h>