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

[Minios-devel] [UNIKRAFT/LWIP PATCH v2 4/5] lwipopts.h: Use libc ioctl.h if available


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 16 Aug 2019 10:09:42 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, Bogdan Lascu <lascu.bogdan96@xxxxxxxxx>
  • Delivery-date: Fri, 16 Aug 2019 07:09:59 +0000
  • Ironport-phdr: 9a23:kYdtLRygy34/4rjXCy+O+j09IxM/srCxBDY+r6Qd2uIQIJqq85mqBkHD//Il1AaPAdyBrasf0aGP6vyocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSSxbalvIBi4swndudQajZZtJ60s1hbHv3xEdvhMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTDQhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlTwKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8dZMCAeofM+hFoYfzpFwAohmwBQS3GO/j1iVFimPs0KEmz+gsFxzN0gw6H9IJtXTZtMv4NKAJUeCpzanIyyjIYfVL2Tfl9YjDbxcsru2LXbJrbcrRyE8vGxnBjlWNsYzlIiiY2fgWs2SB9+pgSPmgh3Q9qwF2uzWiwNonhIrRho8N11zJ+jh1zJw2KNC4UkJ3f8CoHZlKuyyUL4d6X8wvT3xytCs5yrAKo4C3cSYExZg92hLSZOKLfo6V6Rz5TumROy13hHd9dbK6gBa97Favx/XnVsmxzFZKti1FksTQtnwV1xzc9MyHSvxl80e/3DaAzQHT6uVeLU8ojqrXMYYhwqMrmZYJq0TDGTf6mETwjKCIakUp4vWk5uv6brn8pZKRN5V4hh/gPqksgMCyD/w0Mg0UUGia/eS82qfj/Ur8QLhSkvI2lbLZsIzbJcQdvKK5BxJV0p4+6xukEzimy84UnWEaLF1eYh6HlY/pN0nUIP/kFfe/n0iskDBzyvDCJLLhGYnCLmXZnLj6erZ95FNTxxA1zd1b5p9ZEb4BIPfpVU/wsNzUFAM2Mwuxw+z/EtVyypseWX6TAq+eKK7StF6I5uQuI+mLf48ZoSvyJOY75/HwiX80glsdfaiy3ZsLc3C0BPtnLFufYXb2hdcBC2gKtBIkTOP2kF2CTSJTZ3GqUqIy+D47DIOmDZ/dSYy3gLyBwSa7EYFXZm1dDFCDD2vnd4GeVPgXci6dPNJhmCQeVbe9U48hyQ2utAjixrp8L+rU/yoYtZT52Nh2+u3cixcy9D1qAMSHyGyNSX97kX8MRzAsx69zu1JyykrQmZR/1vlZE91U/LZFXxk3MbbYzvdmEJbiVwSHec2GG3i8RdDzKjYqUtM3i/sTe1s1T96llQzC2WyuHqcIv7eQQoQp+OTG2C6idI5G13/a2fx53BEdScxVODjj3/Yn+g==
  • Ironport-sdr: q7iYPzWBSZlyv0Ju8sgS2Jy6vRyUybACCR3YWgkGRPbvb5DshF+xuZ+tmgvjXzWmt85K50V0l0 uZSVPAVoHopQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

From: Bogdan Lascu <lascu.bogdan96@xxxxxxxxx>

If we do have a libc ioctl.h header then we should be using it because it
usually contains a larger number of constants with better value assignments than
the ones in lwip.

Signed-off-by: Bogdan Lascu <lascu.bogdan96@xxxxxxxxx>
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 include/lwipopts.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lwipopts.h b/include/lwipopts.h
index c72c161..559223d 100644
--- a/include/lwipopts.h
+++ b/include/lwipopts.h
@@ -187,6 +187,10 @@ void sys_free(void *ptr);
 #endif
 
 #if LWIP_SOCKET
+#if CONFIG_HAVE_LIBC
+/* Stop lwip to provide ioctl constants */
+#include <sys/ioctl.h>
+#endif
 /* Stop lwip to provide fd_set */
 #include <sys/select.h>
 
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.