summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-27 18:11:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-27 18:11:56 -0600
commitb076614940f39d9a318f8003eaff9fab846fae6e (patch)
treef97cdeae9f29b0b262622babbb887604a8612477 /apps
parent3264dd4bf2f52b8ed7d6e7a9205ae8e489b15c2e (diff)
downloadnuttx-b076614940f39d9a318f8003eaff9fab846fae6e.tar.gz
nuttx-b076614940f39d9a318f8003eaff9fab846fae6e.tar.bz2
nuttx-b076614940f39d9a318f8003eaff9fab846fae6e.zip
More compile fixes
Diffstat (limited to 'apps')
-rw-r--r--apps/interpreters/bas/Makefile10
-rw-r--r--apps/interpreters/bas/global.c2
-rw-r--r--apps/interpreters/bas/statement.c2
3 files changed, 5 insertions, 9 deletions
diff --git a/apps/interpreters/bas/Makefile b/apps/interpreters/bas/Makefile
index cd43c67e3..74cde67fd 100644
--- a/apps/interpreters/bas/Makefile
+++ b/apps/interpreters/bas/Makefile
@@ -44,7 +44,9 @@ CSRCS =
ifeq ($(CONFIG_INTERPRETERS_BAS),y)
-CSRCS += auto.c bas.c fs.c getopt1.c getopt.c global.c main.c program.c statement.c str.c value.c var.c
+CSRCS += auto.c bas.c fs.c getopt1.c getopt.c global.c main.c program.c
+CSRCS += str.c value.c var.c
+
DEPPATH = --dep-path .
VPATH = .
@@ -52,12 +54,6 @@ ifeq ($(WINTOOL),y)
INCDIROPT = -w
endif
-##include ascii/Make.defs
-##include functions/Make.defs
-##include nuttx/Make.defs
-##include rtu/Make.defs
-##include tcp/Make.defs
-
endif
AOBJS = $(ASRCS:.S=$(OBJEXT))
diff --git a/apps/interpreters/bas/global.c b/apps/interpreters/bas/global.c
index 243b7c1eb..1b737332e 100644
--- a/apps/interpreters/bas/global.c
+++ b/apps/interpreters/bas/global.c
@@ -39,7 +39,7 @@
#endif
/*}}}*/
-#ifndef CONFIG_INTERPRETER_BAS_HAVE_ENVIRON
+#ifdef CONFIG_INTERPRETER_BAS_HAVE_ENVIRON
extern char **environ;
#endif
diff --git a/apps/interpreters/bas/statement.c b/apps/interpreters/bas/statement.c
index 9e324b885..36f22d057 100644
--- a/apps/interpreters/bas/statement.c
+++ b/apps/interpreters/bas/statement.c
@@ -1,8 +1,8 @@
/* #includes */ /*{{{C}}}*//*{{{*/
+#include <sys/wait.h>
#include <unistd.h>
#include "config.h"
-#include <unistd.h>
#ifdef HAVE_GETTEXT
#include <libintl.h>
#define _(String) gettext(String)