Index: fortify.h
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ fortify.h	2009-11-24 18:12:56.934029000 +0100
@@ -0,0 +1,17 @@
+#if defined(__USE_FORTIFY_LEVEL)
+# undef syslog
+# undef vsyslog
+# undef openlog
+# undef closelog
+# undef setlogmask
+extern void priv_syslog(int, const char *, ...);
+extern void priv_vsyslog(int, const char *, va_list);
+extern void priv_openlog(const char *, int, int);
+extern void priv_closelog(void);
+extern int  priv_setlogmask(int);
+# define syslog		priv_syslog
+# define vsyslog	priv_vsyslog
+# define openlog	priv_openlog
+# define closelog	priv_closelog
+# define setlogmask	priv_setlogmask
+#endif
Index: klogd.c
===================================================================
--- klogd.c.orig	2009-11-24 18:12:56.685124000 +0100
+++ klogd.c	2009-11-24 18:12:56.937035000 +0100
@@ -286,6 +286,8 @@ static char	*PidFile = "/etc/klogd.pid";
 #endif
 #endif
 
+#include "fortify.h"
+
 static int	kmsg,
 		change_state = 0,
 		terminate = 0,
Index: syslog.c
===================================================================
--- syslog.c.orig	2009-11-24 18:12:54.173290000 +0100
+++ syslog.c	2009-11-24 18:12:56.940031000 +0100
@@ -72,6 +72,8 @@ static char sccsid[] = "@(#)syslog.c	5.2
 
 #define	_PATH_LOGNAME	"/dev/log"
 
+#include "fortify.h"
+
 static int	LogFile = -1;		/* fd for log */
 static int	connected;		/* have done connect */
 static int	LogStat = 0;		/* status bits, set by openlog() */