Files
2013-09-26 17:14:40 +02:00

22 lines
519 B
Plaintext

$NetBSD: patch-ac,v 1.4 2006/01/13 00:13:54 joerg Exp $
--- src/nighthawk.cc.orig 1998-06-22 06:28:05.000000000 -0500
+++ src/nighthawk.cc
@@ -20,6 +20,7 @@ extern "C" {
#include <string.h>
#include <signal.h>
#include <pwd.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
@@ -85,7 +86,7 @@ FILE *lopen(char *filename,char *mode)
FILE *fp;
if((fp = fopen(filename,mode)) != NULL)
- flock(fp->_fileno,LOCK_EX);
+ flock(fileno(fp),LOCK_EX);
return fp;
}