On 6/9/13 3:29 PM, Blair Zajac wrote:
> I recalled that PPC is big endian so hacked the below patch in and was
> able to get fwknop to work. I wouldn't use the patch for a good commit,
> as it doesn't support 64-bit PPC systems and its duplicated across two
> files.

BTW, this is on Mac OS X 10.5.8 and the OS doesn't define BYTEORDER in a 
standard header (I don't count ffi/*.h as standard headers):

$ find /usr/include -type f | xargs grep BYTEORDER
/usr/include/ffi/fficonfig.h:#  define  BYTEORDER 1234
/usr/include/ffi/fficonfig.h:#  define  BYTEORDER 1234
/usr/include/ffi/fficonfig.h:#  define  BYTEORDER 4321
/usr/include/ffi/fficonfig.h:#  define  BYTEORDER 4321
/usr/include/libkern/_OSByteOrder.h:#ifndef _OS__OSBYTEORDER_H
/usr/include/libkern/_OSByteOrder.h:#define _OS__OSBYTEORDER_H
/usr/include/libkern/_OSByteOrder.h:#endif /* ! _OS__OSBYTEORDER_H */
/usr/include/libkern/i386/_OSByteOrder.h:#ifndef _OS__OSBYTEORDERI386_H
/usr/include/libkern/i386/_OSByteOrder.h:#define _OS__OSBYTEORDERI386_H
/usr/include/libkern/i386/_OSByteOrder.h:#endif /* ! 
_OS__OSBYTEORDERI386_H */
/usr/include/libkern/i386/OSByteOrder.h:#ifndef _OS_OSBYTEORDERI386_H
/usr/include/libkern/i386/OSByteOrder.h:#define _OS_OSBYTEORDERI386_H
/usr/include/libkern/i386/OSByteOrder.h:#endif /* ! _OS_OSBYTEORDERI386_H */
/usr/include/libkern/machine/OSByteOrder.h:#ifndef _OS_OSBYTEORDERMACHINE_H
/usr/include/libkern/machine/OSByteOrder.h:#define _OS_OSBYTEORDERMACHINE_H
/usr/include/libkern/machine/OSByteOrder.h:#endif /* ! 
_OS_OSBYTEORDERMACHINE_H */
/usr/include/libkern/OSByteOrder.h:#ifndef _OS_OSBYTEORDER_H
/usr/include/libkern/OSByteOrder.h:#define _OS_OSBYTEORDER_H
/usr/include/libkern/OSByteOrder.h:#endif /* ! _OS_OSBYTEORDER_H */
/usr/include/libkern/ppc/OSByteOrder.h:#ifndef _OS_OSBYTEORDERPPC_H
/usr/include/libkern/ppc/OSByteOrder.h:#define _OS_OSBYTEORDERPPC_H
/usr/include/libkern/ppc/OSByteOrder.h:#endif /* ! _OS_OSBYTEORDERPPC_H */
/usr/include/sys/sysctl.h:#define       HW_BYTEORDER     4              /* int: 
machine byte 
order */

Blair


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Fwknop-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fwknop-discuss

Reply via email to