]> granicus.if.org Git - php/commitdiff
ftruncate is defined in flock_compat.h on windows
authorMarcus Boerger <helly@php.net>
Tue, 12 Nov 2002 21:03:10 +0000 (21:03 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 12 Nov 2002 21:03:10 +0000 (21:03 +0000)
ext/dbase/dbf_rec.c

index 11ee63b1072005fb67f29c008f8f3523f5efbf1c..2050bc834a9643e6617ad81f1d8ad70398a0eee5 100644 (file)
@@ -4,11 +4,19 @@
  * All Rights Reserved
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "php.h"
+
+#include "ext/standard/flock_compat.h" 
+
 #include <stdio.h>
 #include <fcntl.h>
 
 #include "dbf.h"
-
 int get_piece(dbhead_t *dbh, long offset, char *cp, int len);
 int put_piece(dbhead_t *dbh, long offset, char *cp, int len);