source: build-files/ports-overlay/security/ossec-hids-server/files/extra-patch-src__os_csyslogd__csyslogd.c @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 11 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 484 bytes
Line 
1--- ./src/os_csyslogd/csyslogd.c.orig   2013-01-15 16:31:13.000000000 -0500
2+++ ./src/os_csyslogd/csyslogd.c        2013-01-15 16:32:23.000000000 -0500
3@@ -23,7 +23,16 @@
4 #include "csyslogd.h"
5 #include "os_net/os_net.h"
6 
7+#ifndef HAVE_STRNLEN
8+size_t strnlen(char *s, size_t maxlen)
9+{
10+    size_t i;
11 
12+    for (i= 0; i < maxlen && *s != '\0'; i++, s++)
13+        ;
14+    return i;
15+}
16+#endif
17 
18 /* OS_SyslogD: Monitor the alerts and sends them via syslog.
19  * Only return in case of error.
Note: See TracBrowser for help on using the repository browser.