]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
sm-notify command: include <config.h>
authorChuck Lever <chuck.lever@oracle.com>
Fri, 26 Sep 2008 17:20:49 +0000 (13:20 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 26 Sep 2008 17:20:49 +0000 (13:20 -0400)
Clean up: Include config.h as other source files do; instead of using
"config.h" use the HAVE_CONFIG_H macro and include <config.h>.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/statd/sm-notify.c

index b75f11b365c317a8f4638b6bf4574ab602be86bf..5a023949191ad160e1edb8f57a06f97b7cf445df 100644 (file)
@@ -4,6 +4,10 @@
  * Copyright (C) 2004-2006 Olaf Kirch <okir@suse.de>
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
@@ -24,8 +28,6 @@
 #include <errno.h>
 #include <grp.h>
 
-#include "config.h"
-
 #ifndef BASEDIR
 # ifdef NFS_STATEDIR
 #  define BASEDIR              NFS_STATEDIR