[osicat-devel] [patch] Make osicat-glue.c compile on FreeBSD
Peter Schuller
peter.schuller at infidyne.com
Thu Oct 13 16:31:54 UTC 2005
Hello,
osicat-glue.c fails to compile on FreeBSD because the implicit
declaration of free() conflicts with the subsequent definition
that is attempted as a result of stdlib/stdio includes.
Suggest moving the #include directovives to the top of the file.
Trivial patch attached.
--
/ Peter Schuller, InfiDyne Technologies HB
PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller at infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey at scode.org
E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org
-------------- next part --------------
--- osicat-glue.c~ Fri Oct 7 00:25:31 2005
+++ osicat-glue.c Wed Oct 12 16:04:31 2005
@@ -26,6 +26,8 @@
#include <pwd.h>
#include <errno.h>
#include <unistd.h>
+#include <stdio.h>
+#include <stdlib.h>
extern int
osicat_mode (char * name, int follow_p)
@@ -117,9 +119,6 @@
return pwent->pw_shell;
}
-
-#include <stdio.h>
-#include <stdlib.h>
extern int
osicat_tmpfile (void)
More information about the osicat-devel
mailing list