]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
netinet/tcp.h: Add header guards
authorVlad-Andrei BĂDOIU <vlad_andrei.badoiu@stud.acs.upb.ro>
Tue, 31 Mar 2020 14:39:46 +0000 (17:39 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Thu, 2 Apr 2020 08:47:11 +0000 (10:47 +0200)
tcp.h is missing the header guards, we add
them in this patch.

Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/netinet/tcp.h

index bc3a7b4da1a66974ff4dd85e576a92e0ce9c8426..84b2549c88286a71de38c0d43c212f99eec64bc7 100644 (file)
@@ -33,6 +33,9 @@
  *     @(#)tcp.h       8.1 (Berkeley) 6/10/93
  */
 
+#ifndef _TCP_H_
+#define _TCP_H_
+
 typedef        u_long  tcp_seq;
 /*
  * TCP header.
@@ -89,3 +92,5 @@ struct tcphdr {
 #define        TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
 #define        TCP_MAXSEG      0x02    /* set maximum segment size */
 #define        TCP_CORK        0x03    /* don't send out partial frames. Not supported/stub */
+
+#endif