This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] <sys/un.h> uses strlen from <string.h>
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches at cygwin dot com
- Date: Sun, 22 Mar 2009 22:38:32 -0500
- Subject: [PATCH] <sys/un.h> uses strlen from <string.h>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
The SUN_LEN macro in <sys/un.h> calls strlen but doesn't #include
<string.h> for its prototype. Patch attached.
2009-03-22 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* include/sys/un.h: #include <string.h> for strlen.
Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAknHBDgACgkQpiWmPGlmQSNnXwCg40eYsxbTT5v7O0FbZdt/fQfR
rHgAoINxorPjYZGHzJ0oeXuAyixpaqeO
=dZwV
-----END PGP SIGNATURE-----
2009-03-22 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* include/sys/un.h: #include <string.h> for strlen.
Index: include/sys/un.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/sys/un.h,v
retrieving revision 1.4
diff -u -r1.4 un.h
--- include/sys/un.h 31 Dec 2005 13:07:43 -0000 1.4
+++ include/sys/un.h 23 Mar 2009 03:33:59 -0000
@@ -11,6 +11,7 @@
#ifndef _SYS_UN_H
#define _SYS_UN_H
+#include <string.h> /* for strlen */
#include <cygwin/socket.h>
/* POSIX requires only at least 100 bytes */