aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorChris Rees <utisoft@gmail.com>2011-01-24 17:03:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-01-24 17:04:59 +0100
commite3c127d846eb2febbdb86bcf6c0c92622ab98eea (patch)
treec3d4458c20e13cce49bf049efee798de650eadab /include/libbb.h
parent271c0ce379be4b59d28e17f4774f5a078e77f64b (diff)
downloadbusybox-w32-e3c127d846eb2febbdb86bcf6c0c92622ab98eea.tar.gz
busybox-w32-e3c127d846eb2febbdb86bcf6c0c92622ab98eea.tar.bz2
busybox-w32-e3c127d846eb2febbdb86bcf6c0c92622ab98eea.zip
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 6e37b8d04..aa7944a5d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -38,6 +38,12 @@
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
41#ifdef HAVE_MNTENT_H 47#ifdef HAVE_MNTENT_H
42# include <mntent.h> 48# include <mntent.h>
43#endif 49#endif