summaryrefslogtreecommitdiff
path: root/nuttx/drivers/pipes
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
commit909af806c753228e9ae279432993c93e9180b54f (patch)
tree943750805050126fae960ac09211e22d8ca2cef5 /nuttx/drivers/pipes
parent37a1adc0053c37b3bc70379f489f93359724186a (diff)
downloadpx4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.gz
px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.bz2
px4-nuttx-909af806c753228e9ae279432993c93e9180b54f.zip
Changes to get PX4 config to build. Also some warning removal
Diffstat (limited to 'nuttx/drivers/pipes')
-rw-r--r--nuttx/drivers/pipes/fifo.c4
-rw-r--r--nuttx/drivers/pipes/pipe.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/drivers/pipes/fifo.c b/nuttx/drivers/pipes/fifo.c
index 03aafd0f0..a20fc9c24 100644
--- a/nuttx/drivers/pipes/fifo.c
+++ b/nuttx/drivers/pipes/fifo.c
@@ -1,7 +1,7 @@
/****************************************************************************
* drivers/pipes/fifo.c
*
- * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2008-2009, 2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -40,6 +40,8 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <sys/stat.h>
+
#include <stdint.h>
#include <nuttx/fs/fs.h>
#include <errno.h>
diff --git a/nuttx/drivers/pipes/pipe.c b/nuttx/drivers/pipes/pipe.c
index ce4a7dbe1..826fa9ac7 100644
--- a/nuttx/drivers/pipes/pipe.c
+++ b/nuttx/drivers/pipes/pipe.c
@@ -88,7 +88,7 @@ static const struct file_operations pipe_fops =
#endif
};
-static sem_t g_pipesem = { 1 };
+static sem_t g_pipesem = SEM_INITIALIZER(1);
static uint32_t g_pipeset = 0;
static uint32_t g_pipecreated = 0;