svn commit: trunk/busybox/sysklogd

landley at busybox.net landley at busybox.net
Mon Aug 28 20:16:42 UTC 2006


Author: landley
Date: 2006-08-28 13:16:42 -0700 (Mon, 28 Aug 2006)
New Revision: 16005

Log:
More allbareconfig fixes.


Modified:
   trunk/busybox/sysklogd/syslogd.c


Changeset:
Modified: trunk/busybox/sysklogd/syslogd.c
===================================================================
--- trunk/busybox/sysklogd/syslogd.c	2006-08-28 20:04:46 UTC (rev 16004)
+++ trunk/busybox/sysklogd/syslogd.c	2006-08-28 20:16:42 UTC (rev 16005)
@@ -247,6 +247,10 @@
 	}
 
 }
+#else
+void ipcsyslog_cleanup(void);
+void ipcsyslog_init(void);
+void circ_message(const char *msg);
 #endif							/* CONFIG_FEATURE_IPC_SYSLOG */
 
 /* Note: There is also a function called "message()" in init.c */
@@ -279,6 +283,7 @@
 		fl.l_type = F_WRLCK;
 		fcntl(fd, F_SETLKW, &fl);
 
+#ifdef CONFIG_FEATURE_ROTATE_LOGFILE
 		if (ENABLE_FEATURE_ROTATE_LOGFILE && logFileSize > 0 ) {
 			struct stat statf;
 			int r = fstat(fd, &statf);
@@ -307,7 +312,7 @@
 				}
 			}
 		}
-
+#endif
 		va_start(arguments, fmt);
 		vdprintf(fd, fmt, arguments);
 		va_end(arguments);
@@ -341,6 +346,8 @@
 	remoteaddr.sin_addr = *(struct in_addr *) *(xgethostbyname(RemoteHost))->h_addr_list;
 	remoteaddr.sin_port = htons(RemotePort);
 }
+#else
+void init_RemoteLog(void);
 #endif
 
 static void logMessage(int pri, char *msg)




More information about the busybox-cvs mailing list