utils: Fix check for fmemopen() fallback implementation
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user