From: Marc Dionne Date: Mon, 27 Jul 2009 01:45:33 +0000 (-0400) Subject: Build fix - pre-processor typos in rx_lwp.c and rx_pthread.c X-Git-Tag: openafs-stable-1_4_12pre1~56 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e22930cfce32d0bc245e0c1931308747054a609b;p=packages%2Fo%2Fopenafs.git Build fix - pre-processor typos in rx_lwp.c and rx_pthread.c Commit 119c756d96c4a7f9e01e4ff6bb20156f1abf761b introduced a typo in two places, using #elif instead of the apparently intended #else. Reviewed-on: http://gerrit.openafs.org/231 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman (cherry picked from commit 9a490c96a074f4c3c82a3f01c18bc74cc19ae184) Change-Id: Ic6282bb1535c0d4ba206736d1c2ae5c088bf2a7e Reviewed-on: http://gerrit.openafs.org/944 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/rx_lwp.c b/src/rx/rx_lwp.c index 36d94207e..7bc7eef32 100644 --- a/src/rx/rx_lwp.c +++ b/src/rx/rx_lwp.c @@ -466,7 +466,7 @@ rxi_Sendmsg(osi_socket socket, struct msghdr *msg_p, int flags) #ifndef AFS_NT40_ENV if (errno > 0) return -errno; -#elif +#else if (WSAGetLastError() > 0) return -WSAGetLastError(); #endif diff --git a/src/rx/rx_pthread.c b/src/rx/rx_pthread.c index 78244bde5..700070794 100644 --- a/src/rx/rx_pthread.c +++ b/src/rx/rx_pthread.c @@ -424,7 +424,7 @@ rxi_Sendmsg(osi_socket socket, struct msghdr *msg_p, int flags) #ifndef AFS_NT40_ENV if (errno > 0) return -errno; -#elif +#else if (WSAGetLastError() > 0) return -WSAGetLastError(); #endif