utils: Fix check for fmemopen() fallback implementation

This commit is contained in:
Martin Willi
2013-10-24 15:58:49 +02:00
parent 8465514157
commit 9df621d21f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -515,7 +515,7 @@ _cas_impl(ptr, void*)
#endif /* HAVE_GCC_ATOMIC_OPERATIONS */ #endif /* HAVE_GCC_ATOMIC_OPERATIONS */
#if HAVE_FMEMOPEN == fallback #ifdef HAVE_FMEMOPEN_FALLBACK
static int fmemread(chunk_t *cookie, char *buf, int size) static int fmemread(chunk_t *cookie, char *buf, int size)
{ {
+2 -1
View File
@@ -767,7 +767,8 @@ bool cas_ptr(void **ptr, void *oldval, void *newval);
#ifndef HAVE_FMEMOPEN #ifndef HAVE_FMEMOPEN
# ifdef HAVE_FUNOPEN # ifdef HAVE_FUNOPEN
# define HAVE_FMEMOPEN fallback # define HAVE_FMEMOPEN
# define HAVE_FMEMOPEN_FALLBACK
/** /**
* fmemopen(3) fallback using BSD funopen. * fmemopen(3) fallback using BSD funopen.
* *