Re: [fpc-devel] a patch for fpioctl

2007-09-29 Thread Aleš Katona
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the patch. It was missing some parts (FPC_USE_LIBC and ossysc.inc needed to be changes too). I fixed it in r8676. Ales Hi, I found a difference between the POSIX and the BSD implementation of ioctl, and the FPC fpioctrl is set as the

Re: [fpc-devel] a patch for fpioctl

2007-09-29 Thread Marco van de Voort
Thanks for the patch. It was missing some parts (FPC_USE_LIBC and ossysc.inc needed to be changes too). I fixed it in r8676. I don't like this solution. There is no way possible now to have a piece of code without ifdefs to work on all platforms. Maybe it wasn't before due to culong being

Re: [fpc-devel] a patch for fpioctl

2007-09-29 Thread Katona [EMAIL PROTECTED]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's ugly but have a look at the .inc files. There are ifdefs already, eg: for beos all over the place. If we declare a new type, where do we put it? I don't like this solution. There is no way possible now to have a piece of code without ifdefs to

[fpc-devel] a patch for fpioctl

2007-09-28 Thread ik
Hi, I found a difference between the POSIX and the BSD implementation of ioctl, and the FPC fpioctrl is set as the way BSD is working. My patch fixes that, making different decleration according to BSD/everything else. Please note that accidentally Linuxs' ioctl have parameters the way POSIX