lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #11879] Add POSIX conformant header files


From: Mason
Subject: [lwip-devel] [task #11879] Add POSIX conformant header files
Date: Fri, 23 Mar 2012 10:59:09 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120312 Firefox/11.0 SeaMonkey/2.8

Follow-up Comment #3, task #11879 (project lwip):

Simon Goldschmidt wrote:

> I'd add a new folder "posix" under "src/include" so that ports can
> control whether or not the makefile finds lwIP's posix files (e.g.
> putting socket.h under "src/include/sys/socket.h" would make it
> impossible to use LWIP_COMPAT_SOCKETS==0 and include the original
> system's <sys/socket.h>).
> 
> That would mean adding the files mentioned in the previous post
> would just include "src/include/lwip/socket.h" (or netdb.h/inet.h
> respectively).

Surprisingly enough, the following (trivial) patch was enough to
satisfy the libcurl configure script. (Basically, I just created
src/include/posix/netdb.h, src/include/posix/sys/select.h, and
src/include/posix/sys/socket.h wrappers)

--- a/src/include/posix/netdb.h 1970-01-01 01:00:00.000000000 +0100
+++ b/src/include/posix/netdb.h 2012-03-06 12:00:00.000000000 +0100
@@ -0,0 +1 @@
+#include "lwip/netdb.h"
--- a/src/include/posix/sys/select.h    1970-01-01 01:00:00.000000000 +0100
+++ b/src/include/posix/sys/select.h    2012-03-06 12:00:00.000000000 +0100
@@ -0,0 +1 @@
+#include "lwip/sockets.h"
--- a/src/include/posix/sys/socket.h    1970-01-01 01:00:00.000000000 +0100
+++ b/src/include/posix/sys/socket.h    2012-03-06 12:00:00.000000000 +0100
@@ -0,0 +1 @@
+#include "lwip/sockets.h"


The libcurl configure script can then be invoked with the
following definitions.

LWIP_INC="$LWIP_DIR/src/include"
LWIP_CPPFLAGS="-I $LWIP_INC -I $LWIP_INC/ipv4 -I $LWIP_INC/posix -I
$LWIP_PORT_DIR"
export CPPFLAGS="$LWIP_CPPFLAGS -D USE_LWIPSOCK"

Can you accept this patch for 1.4.1?


(file #25453)
    _______________________________________________________

Additional Item Attachment:

File name: patch_posix_dir.txt            Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?11879>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]