mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
a4f7a538a2
PR: ports/114599 Submitted by: Jean-Francois Dockes <jean-francois.dockes@wanadoo.fr> (maintainer)
24 lines
569 B
C
24 lines
569 B
C
--- metamail/putenv.c.orig Tue Oct 12 17:17:43 1993
|
|
+++ metamail/putenv.c Sat Jul 14 17:35:44 2007
|
|
@@ -17,6 +17,8 @@
|
|
Cambridge, MA 02139, USA. */
|
|
|
|
#include <config.h>
|
|
+#include <stdlib.h>
|
|
+#include <string.h>
|
|
#include <sys/types.h>
|
|
#include <errno.h>
|
|
#ifdef STDC_HEADERS
|
|
@@ -48,7 +50,11 @@
|
|
/* Put STRING, which is of the form "NAME=VALUE", in the environment. */
|
|
int
|
|
putenv (string)
|
|
+#if defined __FreeBSD__ && __FreeBSD__ <= 6
|
|
const char *string;
|
|
+#else
|
|
+ char *string;
|
|
+#endif
|
|
{
|
|
char *name_end = index (string, '=');
|
|
register size_t size;
|