|*BSD ports and strlcpy
|Page 1 of 1|
|Author:||winston [ Sun Feb 26, 2006 11:26 am ]|
|Post subject:||*BSD ports and strlcpy|
Giles has added some code that uses strlcpy(). Linux and Windows do not have a strlcpy() implementation in their libc, so I've added the OpenBSD strlcpy() to the oolite-linux source.
It's switched on and off with a define - the makefile for *BSD will have to not use -DNEED_STRLCPY. I don't know about Irix or other operating systems. Linux and Windows at least will need -DNEED_STRLCPY in the makefile (perhaps there is some way of determining this in the makefile so separate makefiles won't be needed for different OSen, I'm not yet good enough at make to know how to do this)
|Author:||Spooky [ Sun Feb 26, 2006 3:07 pm ]|
Off the top of my head I'm pretty sure IRIX has strlcpy() but I'll have an answer either way tomorrow morning and I'll adjust the *BSD and IRIX packages accordingly. I can also have a bash at the makefile, although I've not messed with GNUmake that much it can't be radically different to the standard IRIX make. (famous last words ) *edit* It turns out one of the int13h chaps has done this OS selecting makefile shenanigans before, I'll get him to give me a hand *edit*
I should be building the 1.63-dev1 Monday morning anyway so I'll roll any changes into that.
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Limited