[ptxdist] Fix missing elf.h on Darwin

2012-01-22 Thread Bernhard Walle
This patch series is an attempt to solve the problem that Darwin has no /usr/include/elf.h. I'm sure that other non-Linux but POSIX-compatible operating systems have no /usr/include/elf.h, so it should not only increase portability for Mac OS but also for *BSD. I think there are various ways to im

[ptxdist] Fix missing elf.h on Darwin (v2)

2012-01-24 Thread Bernhard Walle
This is the second version of the patches. The third patch is not needed any more because host-elf-h-compat is now built as base package rather than as dependency. All other remarks of the review have been integrated in the patch series. The package is maintained at https://bitbucket.org/bwalle/el