X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fconfigurator%2Fconfigurator.c;h=af7955a3144449db4cb1d04fc82454c40558a8ae;hp=e697d7759877793b19f8b57517b3a88153ee2671;hb=6aa15db4f4b07bc25c83769255586de51ec7f614;hpb=19efa835ec7737d625e9a495a29a301c5465f8f5 diff --git a/tools/configurator/configurator.c b/tools/configurator/configurator.c index e697d775..af7955a3 100644 --- a/tools/configurator/configurator.c +++ b/tools/configurator/configurator.c @@ -106,6 +106,12 @@ static struct test tests[] = { "union { int i; char c[sizeof(int)]; } u;\n" "u.i = 0x01020304;\n" "return u.c[0] == 0x04 && u.c[1] == 0x03 && u.c[2] == 0x02 && u.c[3] == 0x01 ? 0 : 1;" }, + { "HAVE_MEMMEM", DEFINES_FUNC, NULL, + "#define _GNU_SOURCE\n" + "#include \n" + "static void *func(void *h, size_t hl, void *n, size_t nl) {\n" + "return memmem(h, hl, n, nl);" + "}\n", }, { "HAVE_MMAP", DEFINES_FUNC, NULL, "#include \n" "static void *func(int fd) {\n"