pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/29427 (nighthawk on linux doesn't find ctime prototype)
Hi,
I'm looking at your problem report about pkgsrc/games/nighthawk not
building on your Linux system. Can you please try the attached file as
replacemend for pkgsrc/games/nighthawk/patches/patch-ac?
Please replace the file, then run
make mps
make clean
make
Let me know if this fixes your problem. If not, let me know what error you
get.
- Hubert
--
NetBSD - Free AND Open! (And of course secure, portable, yadda yadda)
$NetBSD$
--- src/nighthawk.cc.orig 1998-06-22 13:28:05.000000000 +0200
+++ src/nighthawk.cc
@@ -19,11 +19,11 @@ extern "C" {
#include <unistd.h>
#include <string.h>
#include <signal.h>
+#include <time.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -85,7 +85,11 @@ FILE *lopen(char *filename,char *mode)
FILE *fp;
if((fp = fopen(filename,mode)) != NULL)
+#ifdef __NetBSD__
+ flock(fp->_file,LOCK_EX);
+#else
flock(fp->_fileno,LOCK_EX);
+#endif
return fp;
}
Home |
Main Index |
Thread Index |
Old Index