diff mbox

[libiberty] Fix testsuite/test-expandargv.c

Message ID alpine.LNX.2.00.1310232244260.1804@trevally.site
State New
Headers show

Commit Message

Gerald Pfeifer Oct. 23, 2013, 8:46 p.m. UTC
I'm not sure why this did not trigger on GNU/Linux distributions,
on FreeBSD 10 one does need to #include <unistd.h> to get to unlink()
which is used by this test.

With this, the test compiles on my i386-unknown-freebsd10.0 tester;
without it, it doesn't.

Okay?

Gerald

2013-10-22  Gerald Pfeifer  <gerald@pfeifer.com>

	* testsuite/test-expandargv.c: Include unistd.h

Comments

DJ Delorie Oct. 23, 2013, 8:51 p.m. UTC | #1
Ok.
diff mbox

Patch

Index: testsuite/test-expandargv.c
===================================================================
--- testsuite/test-expandargv.c	(revision 203981)
+++ testsuite/test-expandargv.c	(working copy)
@@ -40,6 +40,9 @@ 
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 #ifndef EXIT_SUCCESS
 #define EXIT_SUCCESS 0