+/*
+ * Copyright (C) 2016 Antoine Busque <abusque@efficios.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-only
+ *
+ */
+
/* _GNU_SOURCE is defined by config.h */
#include <dlfcn.h>
#include <stdio.h>
-#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include <common/compat/errno.h>
+
/*
* libfoo has a direct dependency on libbar.
* libbar has a direct dependency on libzzz.
* This test is therefore a mix of dlopen/dlclose and dlmopen/dlclose of
* libfoo, and of its direct dependencies.
*/
-int main(int argc, char **argv)
+int main(void)
{
void *h0, *h2, *h3, *h4;