Browse Source

Fix potential GNU/kFreeBSD snafus.

Douglas William Thrift 14 years ago
parent
commit
6f7d196c66
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtpstree.cpp

+ 4 - 1
dtpstree.cpp

@@ -30,12 +30,15 @@
 #include <string>
 #include <vector>
 
-#ifndef __GLIBC__
+#ifdef __GLIBC__
+#include <bsd/stdlib.h>
+#else
 #include <libgen.h>
 #endif
 
 #include <curses.h>
 #include <err.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <getopt.h>
 #include <kvm.h>