return 1;
}
])
-],[
- ;
-], AC_MSG_ERROR([Unsupported struct padding done by compiler.]))
+],, AC_MSG_ERROR([Unsupported struct padding done by compiler.]))
dnl ---------------------------------------------------------------------------
dnl End Macro: PROTOCOL_BINARY_TEST
sinclude(config/dtrace.m4)
sinclude(config/byteorder.m4)
sinclude(config/64bit.m4)
-#sinclude(config/protocol_binary.m4)
+sinclude(config/protocol_binary.m4)
# We only support GCC and Sun's forte at the moment
if test "$GCC" = "yes"
if test "$ENABLE_DEBUG" = "yes"
then
CFLAGS="-Wall -ggdb -DMEMCACHED_INTERNAL -DHAVE_DEBUG $CFLAGS"
- LDFLAGS="-lm"
else
CFLAGS="-Wall -O3 -DMEMCACHED_INTERNAL $CFLAGS"
- LDFLAGS="-lm"
fi
else
CFLAGS="-Xa -xstrconst -mt -D_FORTEC_ $CFLAGS"
- LDFLAGS="-lm -lsocket -lnsl $LDFLAGS"
DTRACEFLAGS="$DTRACEFLAGS"
fi
AC_HEADER_TIME
AC_TYPE_SIZE_T
AC_SEARCH_LIBS(getopt_long, gnugetopt)
+AC_SEARCH_LIBS(socket, socket)
+AC_SEARCH_LIBS(gethostbyname, nsl)
AC_OUTPUT(Makefile clients/Makefile tests/Makefile docs/Makefile libmemcached/Makefile support/Makefile support/libmemcached.pc support/libmemcached.spec)
EXTRA_DIST = libmemcached_probes.d memcached/README.txt
INCLUDES = -I$(top_builddir)
-LIBS =
+LIBS = @LIBS@
DTRACE = @DTRACE@
DTRACEFLAGS = @DTRACEFLAGS@
server_key= memcached_generate_hash(ptr, key, key_length);
- protocol_binary_request_incr request= {0};
+ protocol_binary_request_incr request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= cmd;
size_t key_length,
int flush)
{
- protocol_binary_request_delete request= {0};
+ protocol_binary_request_delete request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_DELETE;
time_t expiration)
{
unsigned int x;
- protocol_binary_request_flush request= {0};
+ protocol_binary_request_flush request= {.bytes= {0}};
unlikely (ptr->number_of_hosts == 0)
return MEMCACHED_NO_SERVERS;
continue;
}
- protocol_binary_request_getk request= {0};
+ protocol_binary_request_getk request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
if (number_of_keys == 1)
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_GETK;
/*
* Send a noop command to flush the buffers
*/
- protocol_binary_request_noop request= {0};
+ protocol_binary_request_noop request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_NOOP;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
if (ptr->root->flags & MEM_BINARY_PROTOCOL)
{
- protocol_binary_request_quit request = {0};
+ protocol_binary_request_quit request = {.bytes= {0}};
request.message.header.request.magic = PROTOCOL_BINARY_REQ;
request.message.header.request.opcode = PROTOCOL_BINARY_CMD_QUIT;
request.message.header.request.datatype = PROTOCOL_BINARY_RAW_BYTES;
memcached_return rc;
char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
- protocol_binary_request_stats request= {0};
+ protocol_binary_request_stats request= {.bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_STAT;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;
uint64_t cas,
memcached_storage_action verb)
{
- protocol_binary_request_set request= {0};
+ protocol_binary_request_set request= {.bytes= {0}};
size_t send_length= sizeof(request.bytes);
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
{
memcached_return rc;
unsigned int x;
- protocol_binary_request_version request= {0};
+ protocol_binary_request_version request= { .bytes= {0}};
request.message.header.request.magic= PROTOCOL_BINARY_REQ;
request.message.header.request.opcode= PROTOCOL_BINARY_CMD_VERSION;
request.message.header.request.datatype= PROTOCOL_BINARY_RAW_BYTES;