make compilable on IRIX

This commit is contained in:
Andrew Gildfind
2001-04-02 06:47:02 +00:00
parent 0b60dbaf5b
commit d14ba95853
+14 -2
View File
@@ -44,12 +44,24 @@
* 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]))