asm/types.h breaks build on FreeBSD

Issue #92 resolved
Former user created an issue

Inclusion of [asm/types.h] in [src/camera.h] breaks pygame build (SVN version as of 2011-10-04) on FreeBSD, as there is no such header present (might be Linux-specific, I have no idea).

Removing that inclusion from camera.h enables the build to complete, though I can't wouch for the camera module still working, as I don't use it. But pygame itself works.

Excerpt: [...] building 'pygame._camera' extension cc -DNDEBUG -O2 -pipe -march=prescott -Dwchar_t=wchar_t -fno-strict-aliasing -O2 -pipe -march=prescott -Dwchar_t=wchar_t -fno-strict-aliasing -fPIC -D_REENTRANT -I/usr/X11R6/include -I/usr/local/include/SDL -I/usr/local/include -I/usr/local/include/python3.2mu -c src/_camera.c -o build/temp.freebsd-8.2-STABLE-i386-3.2/src/_camera.o In file included from src/camera.h:21, from src/_camera.c:36: src/doc/camera_doc.h:79:3: warning: no newline at end of file In file included from src/_camera.c:36: src/camera.h:39:58: error: asm/types.h: No such file or directory error: command 'cc' failed with exit status 1

Comments (3)

  1. René Dudfield

    Hey,

    thanks for letting us know. I guess I need an #ifdef linux around that.

    I've pushed a change that hopefully fixes it. Are you able to test the latest source and let me know?

    cheers,

  2. Former user Account Deleted

    Sorry for the late reply, wasn't able to get to it sooner until now. As of 2011-10-14, pygame builds now without any issues on FreeBSD 8.2.

    (Generally runs well too, but I can't check the camera module specifically.)

    Thank you for your quick fix.

  3. Log in to comment