From: nishi Date: Wed, 29 May 2024 04:56:39 +0000 (+0000) Subject: add freebsd X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=20b5ede53e673351016dd1d969652001c353bfb1;p=dataworks.git add freebsd git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@133 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- diff --git a/Library/database_table.c b/Library/database_table.c index e3d3ef1..6aa70be 100644 --- a/Library/database_table.c +++ b/Library/database_table.c @@ -154,6 +154,7 @@ char** dataworks_database_get_table_list(struct dataworks_db* db) { __dw_unlockfile(db); return list; } + return NULL; } char** dataworks_database_get_table_fields(struct dataworks_db* db, const char* table) { @@ -267,6 +268,7 @@ uint64_t dataworks_database_get_table_count(struct dataworks_db* db, const char* } free(buf); __dw_unlockfile(db); + return 0; } else { return 0; } diff --git a/Library/dataworks.c b/Library/dataworks.c index e863116..8976cee 100644 --- a/Library/dataworks.c +++ b/Library/dataworks.c @@ -38,6 +38,8 @@ const char* dataworks_copyright = "Copyright (c) Crabware 2024\n" const char* dataworks_platform = "Windows/" #elif defined(__NetBSD__) const char* dataworks_platform = "NetBSD/" +#elif defined(__FreeBSD__) +const char* dataworks_platform = "FreeBSD/" #elif defined(__linux__) const char* dataworks_platform = "Linux/" #elif defined(__WATCOMC__)