]> Savannah Git Hosting - gnulib.git/commitdiff
sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
authorKO Myung-Hun <komh78@gmail.com>
Thu, 1 Dec 2016 10:52:43 +0000 (19:52 +0900)
committerPádraig Brady <P@draigBrady.com>
Thu, 1 Dec 2016 11:35:52 +0000 (11:35 +0000)
On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is
defined.

* lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
OS/2 kLIBC unless TCPV40HDRS is defined.

ChangeLog
lib/sys_socket.in.h

index 3b18083882f661f87b390ffe8848b0059392c99b..6eaaf7f455cded558a33d75ed5aed69413f4b71c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-12-01  KO Myung-Hun  <komh78@gmail.com>
+
+       sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
+       * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
+       OS/2 kLIBC unless TCPV40HDRS is defined.
+
 2016-11-29  Jim Meyering  <meyering@fb.com>
 
        dfa: avoid new infinite loop
 
 2016-11-27  Norihiro Tanaka <noritnk@kcn.ne.jp>
 
-        dfa: avoid match middle in multibyte character
-        * lib/dfa.c (transit_state): If fails in matching single byte characters
-        on a state including period expression in non-UTF8 multibyte locales,
-        skip trailing bytes.
-        (dfa_supported): Revert previous change.
+       dfa: avoid match middle in multibyte character
+       * lib/dfa.c (transit_state): If fails in matching single byte characters
+       on a state including period expression in non-UTF8 multibyte locales,
+       skip trailing bytes.
+       (dfa_supported): Revert previous change.
 
 2016-11-27  Jim Meyering  <meyering@fb.com>
 
index 79aa14e52e9536a95de374aeae63dbe8b60901d3..980a112af071e24b95e700664763c3ea13ca1d23 100644 (file)
@@ -79,7 +79,12 @@ _GL_INLINE_HEADER_BEGIN
 
 #if !@HAVE_SA_FAMILY_T@
 # if !GNULIB_defined_sa_family_t
+/* On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is defined. */
+#  if !defined __KLIBC__ || defined TCPV40HDRS
 typedef unsigned short  sa_family_t;
+#  else
+typedef unsigned char   sa_family_t;
+#  endif
 #  define GNULIB_defined_sa_family_t 1
 # endif
 #endif