* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <sys/fcntl.h>
#include <stdlib.h>
void
fendrmtabent(FILE *fp)
{
- if (fp)
+ if (fp) {
+ /* If it was written to, we really want
+ * to flush to disk before returning
+ */
+ fflush(fp);
+ fdatasync(fileno(fp));
fclose(fp);
+ }
}
void