utils: Fix check for fmemopen() fallback implementation
authorMartin Willi <martin@revosec.ch>
Thu, 24 Oct 2013 13:58:28 +0000 (15:58 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 24 Oct 2013 13:58:49 +0000 (15:58 +0200)
src/libstrongswan/utils/utils.c
src/libstrongswan/utils/utils.h

index 3a535c5..266fb43 100644 (file)
@@ -515,7 +515,7 @@ _cas_impl(ptr, void*)
 #endif /* HAVE_GCC_ATOMIC_OPERATIONS */
 
 
-#if HAVE_FMEMOPEN == fallback
+#ifdef HAVE_FMEMOPEN_FALLBACK
 
 static int fmemread(chunk_t *cookie, char *buf, int size)
 {
index 2cbab5b..f1bac34 100644 (file)
@@ -767,7 +767,8 @@ bool cas_ptr(void **ptr, void *oldval, void *newval);
 
 #ifndef HAVE_FMEMOPEN
 # ifdef HAVE_FUNOPEN
-#  define HAVE_FMEMOPEN fallback
+#  define HAVE_FMEMOPEN
+#  define HAVE_FMEMOPEN_FALLBACK
 /**
  * fmemopen(3) fallback using BSD funopen.
  *