Oolite Bulletins

For information and discussion about Oolite.
It is currently Sun Mar 26, 2017 9:20 am

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: *BSD ports and strlcpy
PostPosted: Sun Feb 26, 2006 11:26 am 
Offline
Pirate
Pirate
User avatar

Joined: Mon Sep 27, 2004 10:21 pm
Posts: 731
Location: Port St. Mary, Isle of Man
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)


Top
   
 Post subject:
PostPosted: Sun Feb 26, 2006 3:07 pm 
Offline
Dangerous
Dangerous
User avatar

Joined: Sun Feb 12, 2006 5:05 pm
Posts: 108
Location: Portsmouth, UK
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 :lol:) *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.

_________________
Spooky
www.int13h.com
Evil Genius

The most merciful thing in all the world is the inability of the human mind to correlate all of its contents.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Limited