aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
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 aa7944a5d..e5988236d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -38,12 +38,6 @@
38#include <time.h> 38#include <time.h>
39#include <unistd.h> 39#include <unistd.h>
40#include <sys/param.h> 40#include <sys/param.h>
41#ifndef HAVE_CLEARENV
42# define clearenv() do { if (environ) environ[0] = NULL; } while (0)
43#endif
44#ifndef HAVE_FDATASYNC
45# define fdatasync fsync
46#endif
47#ifdef HAVE_MNTENT_H 41#ifdef HAVE_MNTENT_H
48# include <mntent.h> 42# include <mntent.h>
49#endif 43#endif
@@ -103,6 +97,15 @@
103 typedef unsigned socklen_t; 97 typedef unsigned socklen_t;
104# endif 98# endif
105#endif 99#endif
100#ifndef HAVE_CLEARENV
101# define clearenv() do { if (environ) environ[0] = NULL; } while (0)
102#endif
103#ifndef HAVE_FDATASYNC
104# define fdatasync fsync
105#endif
106#ifndef HAVE_XTABS
107# define XTABS TAB3
108#endif
106 109
107 110
108/* Some libc's forget to declare these, do it ourself */ 111/* Some libc's forget to declare these, do it ourself */