Commit c00f4b17 authored by Niels Möller's avatar Niels Möller

dlopen-test: Use libnettle.dylib on MacOS.

parent eb50135b
2019-09-15 Niels Möller <nisse@lysator.liu.se>
* testsuite/dlopen-test.c (main): Use libnettle.dylib on MacOS.
2019-07-08 Niels Möller <nisse@lysator.liu.se>
* nettle-types.h (union nettle_block16): Mark w member as deprecated.
......
......@@ -5,11 +5,17 @@
#include <dlfcn.h>
#endif
#ifdef __APPLE__
#define SO_EXT "dylib"
#else
#define SO_EXT "so"
#endif
int
main (int argc UNUSED, char **argv UNUSED)
{
#if HAVE_LIBDL
void *handle = dlopen ("../libnettle.so", RTLD_NOW);
void *handle = dlopen ("../libnettle." SO_EXT, RTLD_NOW);
int (*get_version)(void);
if (!handle)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment