summaryrefslogtreecommitdiffstats
path: root/libconfig
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2008-04-15 11:25:12 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2008-04-15 11:25:12 -0400
commit257315fd9c0b47064a38a0789ba121ffe3e36bc3 (patch)
treec7a9c74948354cda7e1dfc71c29204368c8c2954 /libconfig
parent479a52ade153f462135ade276ec04b5e5e5c5aef (diff)
downloadnastd-257315fd9c0b47064a38a0789ba121ffe3e36bc3.tar.gz
nastd-257315fd9c0b47064a38a0789ba121ffe3e36bc3.zip
Get libconfig building on darwin
Diffstat (limited to 'libconfig')
-rw-r--r--libconfig/Data.h5
-rw-r--r--libconfig/Data.m6
-rw-r--r--libconfig/String.m1
-rw-r--r--libconfig/config.m2
4 files changed, 4 insertions, 10 deletions
diff --git a/libconfig/Data.h b/libconfig/Data.h
index 966310f..df84788 100644
--- a/libconfig/Data.h
+++ b/libconfig/Data.h
@@ -40,7 +40,6 @@
* Generic Entry and Data objects.
*/
@interface DataObject: Object
--dealloc;
-(char *)createCStr;
-(String *)createStr;
-setFromBuffer: (const char *)buffer withLength: (int)len;
@@ -54,8 +53,8 @@
}
-init;
--setKey: keyName;
--setData: dataPtr;
+-setKey: (String *)keyName;
+-setData: (DataObject *)dataPtr;
-getKey;
-getData;
@end
diff --git a/libconfig/Data.m b/libconfig/Data.m
index 3b48c7a..77fe5c7 100644
--- a/libconfig/Data.m
+++ b/libconfig/Data.m
@@ -38,12 +38,6 @@
#include <sys/types.h>
@implementation DataObject
--dealloc
-{
- free(self);
- return nil;
-}
-
-(char *)createCStr
{
return NULL;
diff --git a/libconfig/String.m b/libconfig/String.m
index 9a0bc5a..9a8c0b3 100644
--- a/libconfig/String.m
+++ b/libconfig/String.m
@@ -28,6 +28,7 @@
#include "String.h"
#include <errno.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/libconfig/config.m b/libconfig/config.m
index b0d13a9..59e4679 100644
--- a/libconfig/config.m
+++ b/libconfig/config.m
@@ -1,7 +1,6 @@
#include "conf.h"
#include "config.h"
#include "nastipc.h"
-#include "thread.h"
#include "BuffIO.h"
#include "ArrayData.h"
@@ -10,6 +9,7 @@
#include "StringData.h"
#include <netdb.h>
+#include <stdio.h>
#include <stdlib.h>
RCSID("$Id: config.m,v 1.5 2001/11/09 15:54:38 shmit Exp $");