Browse code

- separated by defines some log facilites that are not supported on solaris

Bogdan-Andrei Iancu authored on 12/02/2004 20:59:49
Showing 1 changed files
... ...
@@ -37,16 +37,24 @@
37 37
 #include <stdio.h>
38 38
 #include <strings.h>
39 39
 
40
-static char* str_fac[]={"LOG_AUTH","LOG_AUTHPRIV","LOG_CRON","LOG_DAEMON",
41
-					"LOG_FTP","LOG_KERN","LOG_LOCAL0","LOG_LOCAL1",
40
+static char* str_fac[]={"LOG_AUTH","LOG_CRON","LOG_DAEMON",
41
+					"LOG_KERN","LOG_LOCAL0","LOG_LOCAL1",
42 42
 					"LOG_LOCAL2","LOG_LOCAL3","LOG_LOCAL4","LOG_LOCAL5",
43 43
 					"LOG_LOCAL6","LOG_LOCAL7","LOG_LPR","LOG_MAIL",
44
-					"LOG_NEWS","LOG_SYSLOG","LOG_USER","LOG_UUCP",0};
45
-static int int_fac[]={LOG_AUTH , LOG_AUTHPRIV , LOG_CRON , LOG_DAEMON ,
46
-					LOG_FTP , LOG_KERN , LOG_LOCAL0 , LOG_LOCAL1 ,
44
+					"LOG_NEWS","LOG_USER","LOG_UUCP",
45
+#ifndef __OS_solaris
46
+					"LOG_AUTHPRIV","LOG_FTP","LOG_SYSLOG",
47
+#endif
48
+					0};
49
+static int int_fac[]={LOG_AUTH ,  LOG_CRON , LOG_DAEMON ,
50
+					LOG_KERN , LOG_LOCAL0 , LOG_LOCAL1 ,
47 51
 					LOG_LOCAL2 , LOG_LOCAL3 , LOG_LOCAL4 , LOG_LOCAL5 ,
48 52
 					LOG_LOCAL6 , LOG_LOCAL7 , LOG_LPR , LOG_MAIL ,
49
-					LOG_NEWS , LOG_SYSLOG , LOG_USER , LOG_UUCP};
53
+					LOG_NEWS , LOG_USER , LOG_UUCP
54
+#ifndef __OS_solaris
55
+					,LOG_AUTHPRIV,LOG_FTP,LOG_SYSLOG
56
+#endif
57
+					};
50 58
 
51 59
 
52 60
 void dprint(char * format, ...)