Fixed a typo that was causing a race condition error.
[awesomized/libmemcached] / m4 / protocol_binary.m4
index 2c654e4acc58f158c663f44a1a078d7e454ecf5c..ba7acaf5f52d01ceaf2a113ba54dbd2860ba3956 100644 (file)
@@ -4,16 +4,17 @@ dnl ---------------------------------------------------------------------------
 AC_DEFUN([PROTOCOL_BINARY_TEST],
   [AC_LANG_PUSH([C])
    save_CFLAGS="$CFLAGS"
-   CFLAGS="$CFLAGS -I${srcdir} -DBUILDING_LIBMEMCACHED"
-   AC_RUN_IFELSE([ 
+   CFLAGS="$CFLAGS -I${srcdir}"
+   AC_RUN_IFELSE([
       AC_LANG_PROGRAM([[
+#include <inttypes.h>
 #include "libmemcached/memcached/protocol_binary.h"
    ]],[[
       protocol_binary_request_set request;
       if (sizeof(request) != sizeof(request.bytes)) {
          return 1;
       }
-   ]])],, AC_MSG_ERROR([Unsupported struct padding done by compiler.])) 
+   ]])],, AC_MSG_ERROR([Unsupported struct padding done by compiler.]))
    CFLAGS="$save_CFLAGS"
    AC_LANG_POP
 ])