[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #5823] move #include <errno.h> from sockets.c to arc
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [patch #5823] move #include <errno.h> from sockets.c to arch.h to prevent warning |
Date: |
Mon, 26 Mar 2007 16:50:58 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
URL:
<http://savannah.nongnu.org/patch/?5823>
Summary: move #include <errno.h> from sockets.c to arch.h to
prevent warning
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: goldsimon
Submitted on: Montag 26.03.2007 um 16:50
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
If LWIP_PROVIDE_ERRNO is defined, compiling sockets.c leads to warnings about
already defined macros:
- first, errno.h is included
- second, lwip/arch.h is included which redefines the error codes used by
lwip
Solution: remove #include <errno.h> from sockets.c and instead include it in
arch.h if LWIP_PROVIDE_ERRNO is not defined (instead of defining the error
codes
- see attached patch -
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Montag 26.03.2007 um 16:50 Name: lwip_errno.patch Size: 923B By:
goldsimon
<http://savannah.nongnu.org/patch/download.php?file_id=12302>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?5823>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #5823] move #include <errno.h> from sockets.c to arch.h to prevent warning,
Simon Goldschmidt <=