Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X 10.4 has no cpu_set_t #49

Closed
chocolate-import opened this issue Dec 8, 2013 · 2 comments
Closed

OS X 10.4 has no cpu_set_t #49

chocolate-import opened this issue Dec 8, 2013 · 2 comments

Comments

@chocolate-import
Copy link

The following bug was originally reported on Sourceforge by phf, 2008-11-17 06:14:44:

Trying to build revision 1380 on OS X 10.4 fails because sched.h does not have a cpu_set_t defined. Here are some details.

Repository Root: https://chocolate-doom.svn.sourceforge.net/svnroot/chocolate-doom
Repository UUID: ee5ca603-980d-0410-972c-a23fc50d79fe
Revision: 1380

i_main.c: In function 'SDL_main':
i_main.c:66: error: 'cpu_set_t' undeclared (first use in this function)
i_main.c:66: error: (Each undeclared identifier is reported only once
i_main.c:66: error: for each function it appears in.)
i_main.c:66: error: parse error before 'set'
i_main.c:68: warning: implicit declaration of function 'CPU_ZERO'
i_main.c:68: error: 'set' undeclared (first use in this function)
i_main.c:69: warning: implicit declaration of function 'CPU_SET'
i_main.c:71: warning: implicit declaration of function 'sched_setaffinity'
make[2]: *** [i_main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@chocolate-import
Copy link
Author

Comment by fraggle, 2008-12-09 23:41:47:

I've reworked the code now. The sched_setaffinity function is detected by autoconf, and if it isn't on the system it isn't compiled in.

@chocolate-import
Copy link
Author

Comment by fraggle, 2008-12-09 23:41:47:

  • status: open --> closed-fixed

jmtd pushed a commit to jmtd/chocolate-doom that referenced this issue Jul 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant