[Packages] net/srelay: Fix compilation
[openwrt/svn-archive/archive.git] / net / srelay / patches / 003-openlog.patch
1 Index: srelay-0.4.6/main.c
2 ===================================================================
3 --- srelay-0.4.6.orig/main.c 2008-02-28 13:21:29.000000000 +0100
4 +++ srelay-0.4.6/main.c 2008-02-28 13:21:30.000000000 +0100
5 @@ -33,6 +33,7 @@
6 */
7
8 #include <sys/stat.h>
9 +#include <syslog.h>
10 #include "srelay.h"
11
12 /* prototypes */
13 @@ -125,6 +126,8 @@
14
15 uid = getuid();
16
17 + openlog("srelay", LOG_PID, LOG_DAEMON);
18 +
19 while((ch = getopt(ac, av, "a:c:i:m:o:p:u:frstbvh?")) != -1)
20 switch (ch) {
21 case 'a':