mount command: fix config.h includes in util/mount
Subsystems (2)
PATCH 2/17 mount command: fix config.h includes in util/mount
Recently #include directives for autoconf's config.h file were added in utils/mount/error.c and utils/mount/mount.c, but appropriate HAVE_CONFIG_H checks were not added at the same time.
In addition, several other .c files under utils/mount reference autoconf-generated HAVE_ macros, but don't appear to include config.h
Signed-off-by Chuck Lever <[email protected]>
---
utils/mount/error.c | 5 ++++- utils/mount/mount.c | 5 ++++- utils/mount/network.c | 4 ++++ utils/mount/nfs4mount.c | 4 ++++ utils/mount/nfsmount.c | 4 ++++ utils/mount/stropts.c | 4 ++++ 6 files changed, 24 insertions(+), 2 deletions(-)
utils/mount/error.c +4 -1
@@ -23,7 +23,10 @@* + Proper support for internationalization */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <unistd.h> #include <sys/types.h> #include <stdio.h>
utils/mount/mount.c +4 -1
@@ -18,7 +18,10 @@* */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <unistd.h> #include <sys/types.h> #include <stdio.h>
utils/mount/network.c +4 -0
@@ -21,6 +21,10 @@* */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <ctype.h> #include <unistd.h> #include <stdio.h>
utils/mount/nfs4mount.c +4 -0
@@ -18,6 +18,10 @@* - Moved to nfs-utils/utils/mount from util-linux/mount. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <unistd.h> #include <stdio.h> #include <string.h>
utils/mount/nfsmount.c +4 -0
@@ -35,6 +35,10 @@* nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <ctype.h> #include <unistd.h> #include <stdio.h>
utils/mount/stropts.c +4 -0
@@ -21,6 +21,10 @@* */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif +#include <ctype.h> #include <unistd.h> #include <stdio.h>