If getline is not available, you should check the presence with 

 

#ifndef HAVE_GETLINE

/* getline compat function */

#endif

 

 

Since in src/include/config.h will look something like this…

/* #undef HAVE_GETLINE */

 

 

“#if ! HAVE_GETLINE” might fail on some systems since the variable isn’t
defined.

 

/Christian

 

 

From: Paul Alfille [mailto:paul.alfi...@gmail.com] 
Sent: den 2 mars 2010 02:48
To: OWFS (One-wire file system) discussion and help
Subject: Re: [Owfs-developers] Problems building 2.7p29 on OpenBSD. Was
2.7p26

 

Ok, found an implementation of getline at
http://www.koders.com/c/fid7449041983F5893CBF13458C88271146BA685037.aspx?s=p
rintf tht seems to do the trick.

I'll put it in.

Paul

On Mon, Mar 1, 2010 at 8:34 PM, Paul Alfille <paul.alfi...@gmail.com> wrote:


Another BSD vs Gnu fight. The gnu getline is far better than using fgets.
Perhaps there is a compatible replacement function to use if getline isn't
available.

 

 

__________ Information från ESET NOD32 Antivirus, version av
virussignaturdatabas 4907 (20100302) __________

 

Meddelandet har kontrollerats av ESET NOD32 Antivirus.

 

http://www.esetscandinavia.com

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to