From 126e447121ed78c36d49bd91fab50240c690ce16 Mon Sep 17 00:00:00 2001 From: rkrolib Date: Wed, 29 Oct 2003 17:29:10 +0000 Subject: [PATCH] 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: https://svn.code.sf.net/p/freeglut/code/trunk@262 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_joystick.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freeglut/freeglut/src/freeglut_joystick.c b/freeglut/freeglut/src/freeglut_joystick.c index a786b4f..ce26abc 100644 --- a/freeglut/freeglut/src/freeglut_joystick.c +++ b/freeglut/freeglut/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