diff options
author | Jim Meyering <jim@meyering.net> | 2000-03-01 13:21:23 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-03-01 13:21:23 +0000 |
commit | 578156186de2da21b4a48a652c2d17a3d23dfc32 (patch) | |
tree | a75d0bfe0cb0e690a3a575bb6b2e14f71d2f20d0 /lib | |
parent | e2915cc17d74d4b6daa2acc3b3940d18ce77a985 (diff) | |
download | coreutils-578156186de2da21b4a48a652c2d17a3d23dfc32.tar.xz |
Guard some #includes with `#if HAVE_...'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/localcharset.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/localcharset.c b/lib/localcharset.c index 0005910b2..86f43b588 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -23,9 +23,16 @@ # include <config.h> #endif -#include <stddef.h> +#if HAVE_STDDEF_H +# include <stddef.h> +#endif + #include <stdio.h> -#include <string.h> +#if HAVE_STRING_H +# include <string.h> +#else +# include <strings.h> +#endif #if HAVE_STDLIB_H # include <stdlib.h> #endif |