diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-11-04 11:40:56 +0100 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-11-04 10:29:24 -0800 |
commit | 24869322da6262588d40eb6b12427feed929aede (patch) | |
tree | 4dd10ed1302c3deb4b63498c35a0239b4b52c3d6 /testapp.c | |
parent | e24110a42dcf036f25e38211198c8a1f8f9590da (diff) | |
download | memcached-24869322da6262588d40eb6b12427feed929aede.tar.gz |
Allow semi-broken C99 compilers to compile memcached
Some C compilers understand the syntax we use in memcached, but do not
ship stdbool.h or stdint.h. According to C99 inttypes.h contains the
formatting macros we use (PRInn) and is supposed to include stdint.h.
This patch tries to detect stdbool.h and inttypes.h and tries to
include them from config.h
Diffstat (limited to 'testapp.c')
-rw-r--r-- | testapp.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -14,16 +14,14 @@ #include <errno.h> #include <assert.h> #include <string.h> -#include <inttypes.h> -#include <stdbool.h> #include <unistd.h> #include <netinet/in.h> #include <fcntl.h> -#include "protocol_binary.h" #include "config.h" #include "cache.h" #include "util.h" +#include "protocol_binary.h" #define TMP_TEMPLATE "/tmp/test_file.XXXXXXX" |