about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nptl/tst-fork3.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 859f582c3a..1dc6d5c8e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-31  Andreas Schwab  <schwab@suse.de>
+
+	* nptl/tst-fork3.c: Include <support/test-driver.c>.
+	(main): Rename to do_test and make static.
+
 2017-05-31  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
 	* csu/libc-start.c [!ARCH_INIT_CPU_FEATURES]: Define
diff --git a/nptl/tst-fork3.c b/nptl/tst-fork3.c
index 8fee264436..33d93f2a04 100644
--- a/nptl/tst-fork3.c
+++ b/nptl/tst-fork3.c
@@ -87,8 +87,8 @@ tf1 (void *arg)
 }
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   initial_pid = getpid ();
 
@@ -104,3 +104,5 @@ main (void)
 
   return 1;
 }
+
+#include <support/test-driver.c>