Hi all, Even though we're using TrouSerS on Linux, it's convenient for developers to be able to compile it on OS X. (it would be nice for testing, in conjunction with the TPM emulator.)
I went through and created a set of changes to allow this, including: * Not using GCC-specific LDFLAGS when compiling tcsd * Use of a public domain portable_endian.h to abstract the fact that you cannot #include <endian.h> on the Apple platform. * Addition of __APPLE__ to some places where __OpenBSD__ and __FreeBSD__ appear * Definition of HOST_NAME_MAX to avoid including bits/local_lim.h on __APPLE__ (I think this is a Linux-specific header) * Removal of 'inline' inside 'extern' functions which were being made available to other object files. (I believe this is undefined behavior; I'm not sure how the compiler would inline these anyway; maybe it's a special feature?) * Minor change to 'gitignore' to also ignore the 'compile' script that gets generated. Also, I noticed some other changes that should be made which are not included in this patch: * bootstrap.sh should not use libtoolize (on OS X and Linux, I've used "autoreconf -f -i -v" successfully) * Fix compiler warnings regarding memset optimization (could have security considerations!) Please let me know if you're willing to accept this patch, and/or if it should be improved upon first. I have attached the patch. Thanks, Mike Pontillo
0001-Changes-to-allow-building-on-OS-X.patch
Description: 0001-Changes-to-allow-building-on-OS-X.patch
------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
