summaryrefslogtreecommitdiff
path: root/net/upclient/patches/patch-aa
blob: ce57cf4e44381a7542ec5af584cf66baa8f6aa3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- src/options.c	Sat Jun 16 14:15:04 2001
+++ src/options.c	Tue Jun 19 10:48:25 2001
@@ -298,8 +298,11 @@
     if(!(fp = fopen("/etc/"CONFIGFILE, "r"))) {
       /* Failed, now try to open config file in /usr/local/etc */
       if(!(fp = fopen("/usr/local/etc/"CONFIGFILE, "r"))) {
-        printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n", CONFIGFILE);
-        exit(-1);
+        /* Failed, now try to open config file in /usr/pkg/etc */
+        if (!(fp = fopen("/usr/pkg/etc/"CONFIGFILE, "r"))) {
+          printf("Error: couldn't open config file %s for reading in:\n- current directory\n- /etc\n- /usr/local/etc\n- /usr/pkg/etc\n", CONFIGFILE);
+          exit(-1);
+        }
       }
     }
   }
--- src/stats-bsd.c	Sat Jun 16 14:12:53 2001
+++ src/stats-bsd.c	Tue Jun 19 10:47:04 2001
@@ -21,6 +21,7 @@
 #include <sys/dkstat.h>
 #include <sys/sysctl.h>
 #include <sys/utsname.h>
+#include <sys/sched.h>
 
 /**
  * @desc	Get statistics