From 053fc4771a6d76d42bcb3027e25cd735ede656e8 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 21 Apr 2006 14:29:54 +0000 Subject: [PATCH] * include/asm/byteorder.h (__ntohl): Fix the missing uint32_t. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/asm/byteorder.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 56f45f419..c5e937d2b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2006-04-21 Lars Munch + + * include/asm/byteorder.h (__ntohl): Fix the missing uint32_t. + 2006-04-21 Corinna Vinschen * fhandler_socket.cc (fhandler_socket::wait): Reorder setting diff --git a/winsup/cygwin/include/asm/byteorder.h b/winsup/cygwin/include/asm/byteorder.h index fd683ff9f..79e580fde 100644 --- a/winsup/cygwin/include/asm/byteorder.h +++ b/winsup/cygwin/include/asm/byteorder.h @@ -36,7 +36,7 @@ extern __inline__ uint32_t __constant_ntohl(uint32_t); extern __inline__ uint16_t __constant_ntohs(uint16_t); extern __inline__ uint32_t -__ntohl(unsigned long int x) +__ntohl(uint32_t x) { __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ "rorl $16,%0\n\t" /* swap words */