summaryrefslogtreecommitdiffstats
path: root/src/squeue/squeue.c
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2008-12-08 00:21:05 +0100
committerpancake <pancake@dazo>2008-12-08 00:21:05 +0100
commit3d427bfd7740731bfc203b047d557af564975cf6 (patch)
treeffef9e82ba45e75d03679aed04b4086d57d6bba7 /src/squeue/squeue.c
parentedac98d26ee29bbdc3e16be8ecec5cbfff80482f (diff)
download0xFFFF-3d427bfd7740731bfc203b047d557af564975cf6.tar.bz2
* Added -n flag to do not write to disk or flash (simulation)
* Added -S flag to specify subversion id manually while flashing or dumping * Fixed support for the last fiasco image - Skip paddings - More verbose output while parsing FIASCO headers * Initial implementation of the full direct FIASCO flasher - No need to dump manually before flashing * Some warnings and code cleanup * Fix building issue * Add HAVE_GUI directive in config.mk * Up to version 0.4
Diffstat (limited to 'src/squeue/squeue.c')
-rw-r--r--src/squeue/squeue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/squeue/squeue.c b/src/squeue/squeue.c
index 0d134f0..96f2b59 100644
--- a/src/squeue/squeue.c
+++ b/src/squeue/squeue.c
@@ -1,13 +1,17 @@
#include "squeue.h"
+#define _XOPEN_SOURCE 500 /* Or: #define _BSD_SOURCE */
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/ipc.h>
#include <signal.h>
#include <sys/shm.h>
+#include <sys/types.h>
+#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
+#include <unistd.h>
#include <string.h>
#define POOL_SIZE ITEM_MAX*ITEM_SIZE