From db5b31571c3cb24fb19d5c5dda56663a674cd1f7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 24 Jun 2014 08:59:29 -0600 Subject: [PATCH] Contents of iob.h should not be compiled if CONFIG_NET_IOB is not set --- include/nuttx/net/iob.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/nuttx/net/iob.h b/include/nuttx/net/iob.h index 25dbbc39a7c..36d1e306dcc 100644 --- a/include/nuttx/net/iob.h +++ b/include/nuttx/net/iob.h @@ -46,6 +46,8 @@ #include +#ifdef CONFIG_NET_IOB + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -310,4 +312,6 @@ void iob_dump(FAR const char *msg, FAR struct iob_s *iob, unsigned int len, # define iob_dump(wrb) #endif +#endif /* CONFIG_NET_IOB */ #endif /* _INCLUDE_NUTTX_NET_IOB_H */ +