summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-30 13:44:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-30 16:23:03 +0100
commitec37843a84857639ba86f34644ef107bb6e40954 (patch)
tree6b08e69e0a2f40ca498a6eb4af1578273b6b2aa6
parentDHCPCD(8): Add namespace header (diff)
downloadrtems-libbsd-ec37843a84857639ba86f34644ef107bb6e40954.tar.bz2
DHCPCD(8): Add config.h
-rw-r--r--dhcpcd/config.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/dhcpcd/config.h b/dhcpcd/config.h
new file mode 100644
index 00000000..b2a49603
--- /dev/null
+++ b/dhcpcd/config.h
@@ -0,0 +1,32 @@
+#ifndef DHCPCD_CONFIG_H
+#define DHCPCD_CONFIG_H
+/* RTEMS */
+#define PLATFORM_BSD
+#define SYSCONFDIR "/etc"
+#define SBINDIR "/sbin"
+#define LIBDIR "/lib"
+#define LIBEXECDIR "/libexec"
+#define DBDIR "/var/db"
+#define RUNDIR "/var/run"
+#include <rtems/bsd/sys/time.h>
+#include <machine/rtems-bsd-program.h>
+#include <machine/rtems-bsd-commands.h>
+#include <spawn.h>
+#include <stdint.h>
+#include "compat/pollts.h"
+uint32_t arc4random(void);
+static inline int dhcpcd_flock(int a, int b) { return -1; }
+#define flock(a, b) dhcpcd_flock(a, b)
+#define getline __getline
+#define closefrom(x) do { } while (0)
+#define _PATH_BPF "/dev/bpf"
+#ifdef __need_getopt_newlib
+#define optind dhcpcd_getopt_data.optind
+#define optarg dhcpcd_getopt_data.optarg
+#define opterr dhcpcd_getopt_data.opterr
+#define optopt dhcpcd_getopt_data.optopt
+#define getopt_long(argc, argv, so, lo, li) getopt_long_r(argc, argv, so, lo, li, &dhcpcd_getopt_data)
+extern struct getopt_data dhcpcd_getopt_data;
+#endif /* __need_getopt_newlib */
+#include "namespace.h"
+#endif /* DHCPCD_CONFIG_H */