From: Richard Rauch Date: Wed, 29 Oct 2003 17:29:10 +0000 (+0000) Subject: Added Thierry's change to include sys/param.h. This lets us pick out version X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=856382655b781864d3965b6dfe77a0d3ef473d50;p=freeglut Added Thierry's change to include sys/param.h. This lets us pick out version numbers for OS releases corresponding to system headers. I modified it to also work with NetBSD; I cannot confirm if it is safe with any other systems, so it remains protected by a #if. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@262 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index a786b4f..ce26abc 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -33,6 +33,10 @@ * FreeBSD port - courtesy of Stephen Montgomery-Smith */ +#if defined(__FreeBSD__) || defined(__NetBSD__) +#include +#endif + #ifdef HAVE_CONFIG_H #include "config.h" #endif