make compilable on IRIX
authorAndrew Gildfind <ajag@sgi.com>
Mon, 2 Apr 2001 06:47:02 +0000 (06:47 +0000)
committerAndrew Gildfind <ajag@sgi.com>
Mon, 2 Apr 2001 06:47:02 +0000 (06:47 +0000)
src/fill2.c

index 6108ec1f5edb8d78f045c52f9ad33cd3256bae8d..3615b8596f838058690e056b6a69b009ebbba357 100644 (file)
  *   needed by fill2fs to ensure that the number of bytes written is accurately
  *   determined.
  *
+ *   To compile standalone on IRIX: cc -DTOOL_ONLY -o fill2 fill2.c -lgen
+ *
  *   $Id$
  */
 
-
-#include <libxfs.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 #include <errno.h>
+#include <unistd.h>
+#include <libgen.h>
+#include <assert.h>
+
+#ifndef TOOL_ONLY
+#include <platform_defs.h>
+#else
+#define constpp char * const *
+#endif /* TOOL_ONLY */
 
 #define N(x) (sizeof(x)/sizeof(x[0]))