Need extern decl. for fdatasync() in case it exists but isn't declared
authorGuido van Rossum <guido@python.org>
Fri, 8 Jan 1999 21:28:05 +0000 (21:28 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 8 Jan 1999 21:28:05 +0000 (21:28 +0000)
anywhere (or, more likely, the declaration requires a magical
combination of _POSIX defines).

Modules/posixmodule.c

index 2441237092df316deb8c8a5830831f065571f1fb..be2cd14a72013113c0e04d1e014603d5a3cc1e02 100644 (file)
@@ -619,7 +619,6 @@ posix_fsync(self, args)
        PyObject *self;
        PyObject *args;
 {
-       
        return posix_int(args, fsync);
 }
 #endif /* HAVE_FSYNC */
@@ -630,12 +629,13 @@ static char posix_fdatasync__doc__[] =
 force write of file with filedescriptor to disk.\n\
  does not force update of metadata.";
 
+extern int fdatasync(int); /* Prototype just in case */
+
 static PyObject *
 posix_fdatasync(self, args)
        PyObject *self;
        PyObject *args;
 {
-       
        return posix_int(args, fdatasync);
 }
 #endif /* HAVE_FDATASYNC */