summaryrefslogtreecommitdiff
path: root/net-dialup/dwun/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-30 11:44:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-30 11:44:06 +0100
commitf516638b7fe9592837389826a6152a7e1b251c54 (patch)
tree8bfecb640b7b6403d7a3d662d923eed630033da7 /net-dialup/dwun/files
parent1a61119f9f7b057830e2ce0563f913ec86f282ad (diff)
gentoo resync : 30.05.2020
Diffstat (limited to 'net-dialup/dwun/files')
-rw-r--r--net-dialup/dwun/files/dwun-0.96e-fno-common.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/net-dialup/dwun/files/dwun-0.96e-fno-common.patch b/net-dialup/dwun/files/dwun-0.96e-fno-common.patch
new file mode 100644
index 000000000000..c84c027e42d5
--- /dev/null
+++ b/net-dialup/dwun/files/dwun-0.96e-fno-common.patch
@@ -0,0 +1,41 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -37,11 +37,11 @@
+ /* extern'ed in main.h */
+ struct settings set;
+ char *error_messages;
++enum MYLOG_OPTIONS MYLOG_OPTIONS = MYLOG_STDERR;
+
+ int main(int argc, char *argv[])
+ {
+ char orig_work_dir[MAXPATHLEN];
+- MYLOG_OPTIONS = MYLOG_STDERR;
+ umask(022); /* -rw-r--r- */
+
+ if (!(error_messages = xmalloc(MAX_LOG_LENGTH)))
+--- a/src/shared.h
++++ b/src/shared.h
+@@ -56,10 +56,11 @@
+ char *external; /* named pipe (optional) */
+ };
+
+-enum {
++enum MYLOG_OPTIONS {
+ MYLOG_STDERR,
+ MYLOG_STDERR_DATEPID,
+ MYLOG_SYSLOG
+-} MYLOG_OPTIONS;
++};
++extern enum MYLOG_OPTIONS MYLOG_OPTIONS;
+
+ #endif
+--- a/src/util.c
++++ b/src/util.c
+@@ -26,6 +26,7 @@
+ #include "util.h"
+ #include "child.h"
+ #include "main.h"
++#include "shared.h"
+
+ static bool create_file(char *file, int options);
+ static void print_date_pid(void);