Merge pull request #9532 from brummer-simon/gnrc_tcp-fix_includes

gnrc_tcp: Add missing includes
This commit is contained in:
Martine Lenders 2018-07-10 20:22:13 +02:00 committed by GitHub
commit 3b1e4f54d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 12 additions and 3 deletions

View File

@ -19,7 +19,9 @@
#include <errno.h> #include <errno.h>
#include <utlist.h> #include <utlist.h>
#include <string.h>
#include "net/af.h" #include "net/af.h"
#include "net/gnrc.h"
#include "net/gnrc/tcp.h" #include "net/gnrc/tcp.h"
#include "internal/common.h" #include "internal/common.h"
#include "internal/fsm.h" #include "internal/fsm.h"
@ -151,6 +153,9 @@ static int _gnrc_tcp_open(gnrc_tcp_tcb_t *tcb, char *target_addr, uint16_t targe
return -EINVAL; return -EINVAL;
} }
} }
#else
/* Supress Compiler Warnings */
(void) target_addr;
#endif #endif
/* Set port number to listen on */ /* Set port number to listen on */
tcb->local_port = local_port; tcb->local_port = local_port;

View File

@ -21,6 +21,7 @@
#include <errno.h> #include <errno.h>
#include "net/af.h" #include "net/af.h"
#include "net/tcp.h" #include "net/tcp.h"
#include "net/gnrc.h"
#include "internal/common.h" #include "internal/common.h"
#include "internal/pkt.h" #include "internal/pkt.h"
#include "internal/fsm.h" #include "internal/fsm.h"

View File

@ -17,8 +17,11 @@
* @} * @}
*/ */
#include <utlist.h>
#include <errno.h>
#include "random.h" #include "random.h"
#include "net/af.h" #include "net/af.h"
#include "net/gnrc.h"
#include "internal/common.h" #include "internal/common.h"
#include "internal/pkt.h" #include "internal/pkt.h"
#include "internal/option.h" #include "internal/option.h"

View File

@ -21,7 +21,7 @@
#include <errno.h> #include <errno.h>
#include "byteorder.h" #include "byteorder.h"
#include "net/inet_csum.h" #include "net/inet_csum.h"
#include "net/gnrc/pktbuf.h" #include "net/gnrc.h"
#include "internal/common.h" #include "internal/common.h"
#include "internal/option.h" #include "internal/option.h"
#include "internal/pkt.h" #include "internal/pkt.h"

View File

@ -23,7 +23,7 @@
#define FSM_H #define FSM_H
#include <stdint.h> #include <stdint.h>
#include "net/gnrc/pkt.h" #include "net/gnrc.h"
#include "net/gnrc/tcp/tcb.h" #include "net/gnrc/tcp/tcb.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -23,7 +23,7 @@
#define PKT_H #define PKT_H
#include <stdint.h> #include <stdint.h>
#include "net/gnrc/pkt.h" #include "net/gnrc.h"
#include "net/gnrc/tcp/tcb.h" #include "net/gnrc/tcp/tcb.h"
#ifdef __cplusplus #ifdef __cplusplus