From: Michael Scherer <misc(a)zarb.org>
---
src/guestfs-internal.h | 1 +
src/inspect.c | 1 +
src/inspect_apps.c | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index cee3048..3b4d2a4 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -254,6 +254,7 @@ enum inspect_os_type {
OS_TYPE_LINUX,
OS_TYPE_WINDOWS,
OS_TYPE_FREEBSD,
+ OS_TYPE_NETBSD,
};
enum inspect_os_distro {
diff --git a/src/inspect.c b/src/inspect.c
index 62cbc85..fde434e 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -166,6 +166,7 @@ guestfs__inspect_get_type (guestfs_h *g, const char *root)
case OS_TYPE_LINUX: ret = safe_strdup (g, "linux"); break;
case OS_TYPE_WINDOWS: ret = safe_strdup (g, "windows"); break;
case OS_TYPE_FREEBSD: ret = safe_strdup (g, "freebsd"); break;
+ case OS_TYPE_NETBSD: ret = safe_strdup (g, "netbsd"); break;
case OS_TYPE_UNKNOWN: default: ret = safe_strdup (g, "unknown"); break;
}
diff --git a/src/inspect_apps.c b/src/inspect_apps.c
index ba27247..44db344 100644
--- a/src/inspect_apps.c
+++ b/src/inspect_apps.c
@@ -103,6 +103,7 @@ guestfs__inspect_list_applications (guestfs_h *g, const char *root)
break;
case OS_TYPE_FREEBSD:
+ case OS_TYPE_NETBSD:
case OS_TYPE_UNKNOWN:
default:
/* nothing - keep GCC happy */;
--
1.7.1