e2ea6ac11d
Related to: <https://fedoraproject.org/wiki/Changes/PortingToModernC> <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
18 lines
448 B
Diff
18 lines
448 B
Diff
Include <unistd.h> for the unlink function. This avoids an implicit
|
|
function declaration, increasing C99 compatibility.
|
|
|
|
Submitted upstream: <https://sourceforge.net/p/byaccj/patches/5/>
|
|
|
|
diff --git a/src/main.c b/src/main.c
|
|
index 54b5e05ba3aa2946..e4deacd47a3c0d34 100755
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -4,6 +4,7 @@
|
|
|
|
#ifndef __WIN32__ /*rwj -- make portable*/
|
|
#include <signal.h>
|
|
+#include <unistd.h>
|
|
#else
|
|
#include <dir.h>
|
|
#endif
|