about summary refs log tree commit diff
path: root/dlfcn/bug-dlsym1-lib1.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/bug-dlsym1-lib1.c')
-rw-r--r--dlfcn/bug-dlsym1-lib1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dlfcn/bug-dlsym1-lib1.c b/dlfcn/bug-dlsym1-lib1.c
index 5435b1f5ce..4eca2519fb 100644
--- a/dlfcn/bug-dlsym1-lib1.c
+++ b/dlfcn/bug-dlsym1-lib1.c
@@ -2,8 +2,10 @@
 
 extern int dlopen_test_variable;
 
+extern char foo (void);
+
 /* here to get the unresolved symbol in our .so */
-char foo()
+char foo(void)
 {
     return dlopen_test_variable;
 }