FS#1450 - Failure to compile on OpenBSD (ALIGN macro defined)

Attached to Project: OpenTTD
Opened by Matthias Wolf (matze) - Sunday, 18 November 2007, 19:08 GMT
Last edited by Bjarni (Bjarni) - Sunday, 18 November 2007, 21:49 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



Compilation fails (and has failed for a bit) on some network stuff including macros.h on OpenBSD, the reason being an ALIGN(p) being defined in /usr/include/i386/param.h. A simple #undef ALIGN put in macros.h before the ALIGN function definition solves this, like the attached patch. There might be a better place and way to solve this, though.
This task depends upon

Closed by  Benedikt Br├╝ggemeier (skidd13)
Monday, 19 November 2007, 20:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r11480
Comment by Bjarni (Bjarni) - Sunday, 18 November 2007, 21:50 GMT
reopened by user request. The fix didn't work.
Comment by Remko Bijker (Rubidium) - Monday, 19 November 2007, 20:20 GMT
Strange that it did not work because it undefs the ALIGN macro for OpenBSD.