cronie/debian/patches/0005-Extend-support-for-kFreeBSD-and-GNU-HURD.patch

41 lines
1.4 KiB
Diff
Raw Normal View History

2011-07-26 14:00:34 +02:00
From: Christian Kastner <debian@kvr.at>
Date: Sun, 7 Aug 2011 19:48:09 +0200
Subject: Extend support for kFreeBSD and GNU HURD
Extend some of the #ifdefs to include kFreeBSD and HURD where it's obviously OK
to do so
Forwarded: no
Last-Update: 2011-08-07
---
src/entry.c | 2 +-
src/pathnames.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
2019-08-06 19:01:25 +02:00
Index: cronie/src/entry.c
===================================================================
--- cronie.orig/src/entry.c 2019-08-06 18:57:12.824000000 +0200
+++ cronie/src/entry.c 2019-08-06 18:57:12.812000000 +0200
@@ -379,7 +379,7 @@
2011-07-26 14:00:34 +02:00
}
else
log_it("CRON", getpid(), "ERROR", "can't set LOGNAME", 0);
-#if defined(BSD) || defined(__linux)
+#if defined(BSD) || defined(__linux) || defined(__GLIBC__) || defined(__gnu_hurd__)
if (glue_strings(envstr, sizeof envstr, "USER", pw->pw_name, '=')) {
if ((tenvp = env_set(e->envp, envstr)) == NULL) {
ecode = e_memory;
2019-08-06 19:01:25 +02:00
Index: cronie/src/pathnames.h
===================================================================
--- cronie.orig/src/pathnames.h 2019-08-06 18:57:12.824000000 +0200
+++ cronie/src/pathnames.h 2019-08-06 18:57:12.812000000 +0200
2011-07-26 14:00:34 +02:00
@@ -26,7 +26,7 @@
#ifndef _PATHNAMES_H_
#define _PATHNAMES_H_
-#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX)
+#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) || defined(__GLIBC__) || defined(__gnu_hurd__)
# include <paths.h>
#endif /*BSD*/