mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
d09907238d
unix/unix.cpp to build, especially when the Makefile does not have it defined. Also, along with this, split the patches out into the customary one-file-per-patch chunks. I'm not ${MAINTAINER}, but nacai does not mind my working on the port :)
22 lines
542 B
Plaintext
22 lines
542 B
Plaintext
diff -ru ../../work/release/memmap.cpp ./memmap.cpp
|
|
--- ../../work/release/memmap.cpp Thu Sep 23 19:56:48 1999
|
|
+++ ./memmap.cpp Wed Dec 29 01:54:04 1999
|
|
@@ -39,7 +39,7 @@
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
|
|
-#ifdef __linux
|
|
+#if defined(__linux) || defined(__FreeBSD__)
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
@@ -737,7 +737,7 @@
|
|
{
|
|
fwrite ((char *) ::SRAM, size, 1, file);
|
|
fclose (file);
|
|
-#if defined(__linux)
|
|
+#if defined(__linux) || defined(__FreeBSD__)
|
|
chown (filename, getuid (), getgid ());
|
|
#endif
|
|
return (TRUE);
|