summaryrefslogtreecommitdiff
path: root/src/platform/hurd/platform-hurd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/hurd/platform-hurd.h')
-rw-r--r--src/platform/hurd/platform-hurd.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/platform/hurd/platform-hurd.h b/src/platform/hurd/platform-hurd.h
new file mode 100644
index 0000000..62258be
--- /dev/null
+++ b/src/platform/hurd/platform-hurd.h
@@ -0,0 +1,38 @@
+/*--------------------------------------------------------------------
+ * Copyright © 2016 James Hunt <jamesodhunt@ubuntu.com>.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *--------------------------------------------------------------------
+ */
+
+#ifndef _PROCENV_PLATFORM_HURD_H
+#define _PROCENV_PLATFORM_HURD_H
+
+#include "platform.h"
+#include "util.h"
+
+/* Seriously? */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+/* semctl(2) states that POSIX.1-2001 requires the caller define this! */
+union semun {
+ int val;
+ struct semid_ds *buf;
+ unsigned short int *array;
+ struct seminfo *__buf;
+};
+
+#endif /* _PROCENV_PLATFORM_HURD_H */