File 0001-use-_PATH_VARRUN-from-paths.h.patch of Package ypserv

From 77bde21fe32194cfe38d1b1437cfa188e2d390d4 Mon Sep 17 00:00:00 2001
From: Ruediger Meier <ruediger.meier@ga-group.nl>
Date: Mon, 21 Nov 2016 20:02:12 +0100
Subject: [PATCH 1/2] use _PATH_VARRUN from paths.h

Since 1e5d6333 configure we doesn't check for paths.h anymore. That's
why all pidfiles went to /etc instead of /var/run.

Normally I would simply add AC_CHECK_HEADERS(paths.h) again but
since this project does not check for any other header I simply
remove "#if HAVE_PATHS_H".

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 lib/pidfile.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/pidfile.h b/lib/pidfile.h
index 47c2f67..d524963 100644
--- a/lib/pidfile.h
+++ b/lib/pidfile.h
@@ -23,9 +23,8 @@
 #include "config.h"
 #endif
 
-#ifdef HAVE_PATHS_H
 #include <paths.h>
-#endif
+
 #ifndef _PATH_VARRUN
 #define _PATH_VARRUN "/etc/"
 #endif
-- 
1.8.5.6

openSUSE Build Service is sponsored by