fix build on 2.6.19 (closes: #1070), fix missing process name in syslog (closes:...
[openwrt/svn-archive/archive.git] / net / srelay / patches / 03-openlog.patch
1 diff -Naurp srelay-0.4.6.orig/main.c srelay-0.4.6/main.c
2 --- srelay-0.4.6.orig/main.c 2006-12-13 22:58:39.000000000 +0100
3 +++ srelay-0.4.6/main.c 2006-12-13 23:02:59.000000000 +0100
4 @@ -33,6 +33,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DA
5 */
6
7 #include <sys/stat.h>
8 +#include <syslog.h>
9 #include "srelay.h"
10
11 /* prototypes */
12 @@ -125,6 +126,8 @@ int main(int ac, char **av)
13
14 uid = getuid();
15
16 + openlog("srelay", LOG_PID, LOG_DAEMON);
17 +
18 while((ch = getopt(ac, av, "a:c:i:m:o:p:u:frstbvh?")) != -1)
19 switch (ch) {
20 case 'a':