[PATCH] <sys/un.h> uses strlen from <string.h>

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] <sys/un.h> uses strlen from <string.h>

Yaakov (Cygwin/X)
-----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  <[hidden email]>

    * 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  <[hidden email]>

        * 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 */
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] <sys/un.h> uses strlen from <string.h>

Corinna Vinschen-2
On Mar 22 22:38, Yaakov S wrote:
>     * include/sys/un.h: #include <string.h> for strlen.

Patch applied.


Thanks,
Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat