Oolite Bulletins

For information and discussion about Oolite.
It is currently Tue Mar 26, 2019 10:24 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 
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)

 Post subject:
PostPosted: Sun Feb 26, 2006 3:07 pm 
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.

Evil Genius

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

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:
Powered by phpBB® Forum Software © phpBB Limited