Freeglut fails to build on kfreebsd* due to missing legacy/dev/usb/usb.h

2012-06-22 Thread Anton Gladky
Dear all, there is a bug #678571 [1]. Freeglut fails to build on kfreebsd* due to missing legacy/dev/usb/usb.h: freeglut_joystick.c:154:40: fatal error: legacy/dev/usb/usb.h: No such file or directory I have committed a fix [2], but I am not sure, whether it is correct. The fghJoystickWalkUSBdev

Re: sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
Ok, thanks for suggestions. Hope, the optimal solution will be found. Anton -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALF6qJnB73EY-DijF73OvXGueS13kchUN=pqp6knee

Re: sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
It is for FreeCAD [1]: struct sysinfo si; int err = sysinfo( &si ); if ( err ) return -1; static int limit = -1; if ( limit < 0 ) { int status = system("SMDS_MemoryLimit"); // it returns lower limit of free RAM if (status >= 0 ) { limit = WEXITSTATUS(status); }

sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
Hi, all I have a very simple code: = #include int main() { struct sysinfo si; } = On KFreebsd it fails and causes FTBFS: s.cpp:5:18: error: aggregate ‘main()::sysinfo si’ has incomplete type and cannot be defined On other systems it compiles without errors. What can be a prob