utils: Fix check for fmemopen() fallback implementation
This commit is contained in:
1 parent
8465514157
commit
9df621d21f
2 files changed
+3
-2
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user