--- a/netem/maketable.c +++ b/netem/maketable.c @@ -11,7 +11,9 @@ #include #include #include +#if !defined(__APPLE__) && !defined(__FreeBSD__) #include +#endif #include #include #include --- a/netem/normal.c +++ b/netem/normal.c @@ -9,8 +9,12 @@ #include #include +#if !defined(__APPLE__) && !defined(__FreeBSD__) #include #include +#else +#define NETEM_DIST_SCALE 8192 +#endif #define TABLESIZE 16384 #define TABLEFACTOR NETEM_DIST_SCALE --- a/netem/pareto.c +++ b/netem/pareto.c @@ -8,8 +8,12 @@ #include #include +#if !defined(__APPLE__) && !defined(__FreeBSD__) #include #include +#else +#define NETEM_DIST_SCALE 8192 +#endif static const double a=3.0; #define TABLESIZE 16384 --- a/netem/paretonormal.c +++ b/netem/paretonormal.c @@ -15,10 +15,13 @@ #include #include #include +#if !defined(__APPLE__) && !defined(__FreeBSD__) #include - #include #include +#else +#define NETEM_DIST_SCALE 8192 +#endif #define TABLESIZE 16384 #define TABLEFACTOR NETEM_DIST_SCALE