From peter.schuller at infidyne.com Thu Oct 13 18:31:54 2005 From: peter.schuller at infidyne.com (Peter Schuller) Date: Thu Oct 13 18:32:14 2005 Subject: [osicat-devel] [patch] Make osicat-glue.c compile on FreeBSD Message-ID: <20051013163153.GA3066@starfury.scode.org> 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 ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@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 #include #include +#include +#include extern int osicat_mode (char * name, int follow_p) @@ -117,9 +119,6 @@ return pwent->pw_shell; } - -#include -#include extern int osicat_tmpfile (void) From peter.schuller at infidyne.com Thu Oct 13 16:31:54 2005 From: peter.schuller at infidyne.com (Peter Schuller) Date: Thu, 13 Oct 2005 18:31:54 +0200 Subject: [osicat-devel] [patch] Make osicat-glue.c compile on FreeBSD Message-ID: <20051013163153.GA3066@starfury.scode.org> 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 ' 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 #include #include +#include +#include extern int osicat_mode (char * name, int follow_p) @@ -117,9 +119,6 @@ return pwent->pw_shell; } - -#include -#include extern int osicat_tmpfile (void)