PATCH: Fix build on Linux with glibc-2.1

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
MacBaine
Engineer
Engineer
Posts: 6
Joined: 05 Oct 2004 13:55

PATCH: Fix build on Linux with glibc-2.1

Post by MacBaine »

Hello everyone,

I just tried to build openttd on an older Debian Potato system with glibc-2.1 and kernel 2.2.19. Since this glibc doesn't define in_addr_t and has no getifaddr a trivial fix is needed (see attachment).

It introduces a new parameter LINUX_GLIBC21 to the Makefile and makes the network_core header recognize it.

Regards,
Jim
Attachments
linux-glibc21.diff
(782 Bytes) Downloaded 236 times
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 14 guests