summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-02 13:53:33 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2014-03-02 13:53:33 -0500
commit9155a365e1e0a7e9fec47447f86af09117b30edb (patch)
tree6c54cfee6f4784aa777cef186dbca9aa1f856efd /util.c
parentffe739eeb12d1bf9dadb2144e95fef79820c6844 (diff)
downloadprism-9155a365e1e0a7e9fec47447f86af09117b30edb.tar.gz
prism-9155a365e1e0a7e9fec47447f86af09117b30edb.zip
Added support for building with GNU C (Linux, etc.). Fixed minor bugs in diff routine.
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.c b/util.c
index cd4b838..23339fd 100644
--- a/util.c
+++ b/util.c
@@ -4,10 +4,13 @@
#include <stdio.h>
#include <stdlib.h>
-#include <sys\types.h>
-#include <direct.h>
+#include <sys/types.h>
#include <string.h>
+#ifndef __GNUC__
+#include <direct.h>
+#endif
+
#include "prism.h"
char *alloc_and_combine_paths(char *p1, char *p2)