Re: [PATCH 1/2] Add config.h to lwip translator

2018-04-30 Thread Samuel Thibault
Joan Lledó, le lun. 30 avril 2018 12:43:23 +0200, a ecrit:
> ---
>  lwip/config.h | 4 
>  1 file changed, 4 insertions(+)
>  create mode 100644 lwip/config.h
> 
> diff --git a/lwip/config.h b/lwip/config.h
> new file mode 100644
> index ..262e3590
> --- /dev/null
> +++ b/lwip/config.h
> @@ -0,0 +1,4 @@
> +#define __KERNEL__   1
> +#undef   __SMP__
> +
> +#define _HURD_   1

I don't think we need this, it was only for glueing with the Linux
TCP/IP stack.  I guess you can just remove the

$(OBJS): config.h

line in Makefile to get rid of it?

Samuel



Lwip translator updates for working with lwip 2.0.3

2018-04-30 Thread Joan Lledó

I've got two patches for the lwip translator.

The first patch only creates a new config.h file in the lwip/ folder. I'm not 
sure whether this is really required (should config.h be generated?) but I 
cannot compile the translator without it. So just ignore it if this is only my 
problem.

The second patch is required for working with lwip 2.0.3. I added a new macro 
in liblwip 2.0.3 which allows switching between using POSIX or lwip socket 
headers when building the library. This requires the translator to add some 
#includes.

> For instance, or to debian-h...@lists.debian.org

OK, I'm sending the debian pkg patches there



[PATCH 1/2] Add config.h to lwip translator

2018-04-30 Thread Joan Lledó
---
 lwip/config.h | 4 
 1 file changed, 4 insertions(+)
 create mode 100644 lwip/config.h

diff --git a/lwip/config.h b/lwip/config.h
new file mode 100644
index ..262e3590
--- /dev/null
+++ b/lwip/config.h
@@ -0,0 +1,4 @@
+#define __KERNEL__ 1
+#undef __SMP__
+
+#define _HURD_ 1
-- 
2.14.0




[PATCH 2/2] Include required sockets headers

2018-04-30 Thread Joan Lledó
---
 lwip/iioctl-ops.c   | 1 +
 lwip/lwip-util.c| 1 +
 lwip/pfinet-ops.c   | 2 ++
 lwip/port/netif/hurdethif.c | 2 ++
 4 files changed, 6 insertions(+)

diff --git a/lwip/iioctl-ops.c b/lwip/iioctl-ops.c
index fcb7e872..6d3b6cb9 100644
--- a/lwip/iioctl-ops.c
+++ b/lwip/iioctl-ops.c
@@ -23,6 +23,7 @@
 #include 
 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/lwip/lwip-util.c b/lwip/lwip-util.c
index c65b093b..57a94d52 100644
--- a/lwip/lwip-util.c
+++ b/lwip/lwip-util.c
@@ -26,6 +26,7 @@
 #include 
 
 #include 
+#include 
 #include 
 
 #include 
diff --git a/lwip/pfinet-ops.c b/lwip/pfinet-ops.c
index 96d2d12b..56b7dcd1 100644
--- a/lwip/pfinet-ops.c
+++ b/lwip/pfinet-ops.c
@@ -26,6 +26,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 #include 
 
 #include 
diff --git a/lwip/port/netif/hurdethif.c b/lwip/port/netif/hurdethif.c
index bcf2e4dd..4b088344 100644
--- a/lwip/port/netif/hurdethif.c
+++ b/lwip/port/netif/hurdethif.c
@@ -43,6 +43,8 @@
 #include 
 #include 
 #include 
+#include 
+#include 
 
 /* Get the MAC address from an array of int */
 #define GET_HWADDR_BYTE(x,n)  (((char*)x)[n])
-- 
2.14.0