buglwIP - A Lightweight TCP/IP stack - Bugs: bug #53249, Compile error socket.h

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53249: Compile error socket.h

Submitter:  Carsten Frank <carstenfrank>
Submitted:  Thu 01 Mar 2018 09:06:59 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Change Request Status:  Invalid
Privacy:  Public Assigned to:  jcunningham
Open/Closed:  Closed Planned Release:  None
lwIP version:  2.0.3

Thu 01 Mar 2018 03:35:02 PM UTC, comment #1: 

<sys/time.h> should be included in your cc.h when LWIP_TIMEVAL_PRIVATE is 0.

See the Unix port (in lwip-contrib) for an example:


#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>


Joel Cunningham <jcunningham>
Group Member
Thu 01 Mar 2018 09:06:59 AM UTC, original submission:  


From socket.h:

#if LWIP_TIMEVAL_PRIVATE
struct timeval {
  long    tv_sec;         /* seconds */
  long    tv_usec;        /* and microseconds */
};
+#else
+#include <sys/time.h>
#endif /* LWIP_TIMEVAL_PRIVATE */

With out the two new lines (+) socket.h can't compile when LWIP_TIMEVAL_PRIVATE is 0

You need it to be zero if you use your compilers native struct timeval.

Carsten Frank <carstenfrank>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jcunningham (Posted a comment)
  • -email is unavailable- added by carstenfrank (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-01 jcunningham StatusNone Invalid
        Assigned toNone jcunningham
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code