From: GOTOU Yuuzou Date: 2004-11-14T15:38:07+09:00 Subject: Re: [1.9] unpack("N") Hi, In message <200411131535.iADFZvr02293@moulon.inra.fr>, `ts ' wrote: > uln% ./ruby -ve 'p "\000\000\000\001".unpack("N")' > ruby 1.9.0 (2004-11-12) [x86_64-linux] > [0] > uln% Could you try this patch? (I tested it on i386 and x86_64 NetBSD.) --- pack.c 10 Nov 2004 07:16:24 -0000 1.74 +++ pack.c 14 Nov 2004 06:26:53 -0000 @@ -253,11 +253,11 @@ endian() #undef ntohl #undef htons #undef htonl +#endif #define ntohs(x) swaps(x) #define ntohl(x) swapl(x) #define htons(x) swaps(x) #define htonl(x) swapl(x) -#endif #define ntohf(x) swapf(x) #define ntohd(x) swapd(x) #define htonf(x) swapf(x) -- gotoyuzo