summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorChris Rees2011-01-24 17:07:06 +0100
committerDenys Vlasenko2011-01-24 17:07:06 +0100
commit330718ef5574d1f830e304107d2a43038aa6ff5c (patch)
tree77b8ae48bc39a25c54b16e60a45803af74ff5a83 /include/libbb.h
parente3c127d846eb2febbdb86bcf6c0c92622ab98eea (diff)
downloadbusybox-330718ef5574d1f830e304107d2a43038aa6ff5c.zip
busybox-330718ef5574d1f830e304107d2a43038aa6ff5c.tar.gz
FreeBSD compat
Signed-off-by: Chris Rees <utisoft@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index aa7944a..e598823 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -38,12 +38,6 @@
#include <time.h>
#include <unistd.h>
#include <sys/param.h>
-#ifndef HAVE_CLEARENV
-# define clearenv() do { if (environ) environ[0] = NULL; } while (0)
-#endif
-#ifndef HAVE_FDATASYNC
-# define fdatasync fsync
-#endif
#ifdef HAVE_MNTENT_H
# include <mntent.h>
#endif
@@ -103,6 +97,15 @@
typedef unsigned socklen_t;
# endif
#endif
+#ifndef HAVE_CLEARENV
+# define clearenv() do { if (environ) environ[0] = NULL; } while (0)
+#endif
+#ifndef HAVE_FDATASYNC
+# define fdatasync fsync
+#endif
+#ifndef HAVE_XTABS
+# define XTABS TAB3
+#endif
/* Some libc's forget to declare these, do it ourself */