Menu

[r7289]: / experimental / spec-sfs / files / patch-libcifs-connect.c  Maximize  Restore  History

Download this file

27 lines (24 with data), 720 Bytes

 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
--- redistributable_sources/libcifs/connect.c.orig 2008-02-02 21:30:04.000000000 -0800
+++ redistributable_sources/libcifs/connect.c 2011-08-20 15:50:55.000000000 -0700
@@ -19,6 +19,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(FreeBSD)
+#include <sys/param.h>
+#endif
#ifndef CIFS_VFS_USERSPACE
#include <linux/fs.h>
#include <linux/net.h>
@@ -102,9 +105,10 @@
unsigned short int port;
};
-#if defined(FreeBSD) || defined(SOLARIS2) || defined(macosx)
-int
-strnlen(char *a,int len)
+#if (defined(FreeBSD) && __FreeBSD_version < 800067) || \
+ defined(SOLARIS2) || defined(macosx)
+size_t
+strnlen(const char *a, size_t maxlen)
{
int i,j;
j=0;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.