From 20b5ede53e673351016dd1d969652001c353bfb1 Mon Sep 17 00:00:00 2001 From: nishi Date: Wed, 29 May 2024 04:56:39 +0000 Subject: [PATCH] add freebsd git-svn-id: file:///raid/svn-main/nishi-dataworks/trunk@133 d4a5a174-5a4a-5b4b-b672-37683c10d7d5 --- Library/database_table.c | 2 ++ Library/dataworks.c | 2 ++ 2 files changed, 4 insertions(+) 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__) -- 2.43.0