1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/games/nighthawk/files/patch-src-nighthawk.cc
Will Andrews 12d0201572 Add nighthawk 2.2, an X11 shoot-'em up which requires some lateral
thinking.

PR:		26341
Submitted by:	Mark Pulford <mark@kyne.com.au>
2001-04-07 05:30:42 +00:00

12 lines
259 B
C++

--- src/nighthawk.cc.orig Wed Apr 4 14:23:09 2001
+++ src/nighthawk.cc Wed Apr 4 14:23:19 2001
@@ -116,7 +116,7 @@
FILE *fp;
if((fp = fopen(filename,mode)) != NULL)
- flock(fp->_fileno,LOCK_EX);
+ flock(fileno(fp),LOCK_EX);
return fp;
}