From 8a6d48c0542876eb3acfc0970c0ab7872db08d5f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 6 Dec 2009 05:26:23 +0100 Subject: check in the original version of dde linux26. --- libdde_linux26/contrib/include/linux/license.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libdde_linux26/contrib/include/linux/license.h (limited to 'libdde_linux26/contrib/include/linux/license.h') diff --git a/libdde_linux26/contrib/include/linux/license.h b/libdde_linux26/contrib/include/linux/license.h new file mode 100644 index 00000000..decdbf43 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/license.h @@ -0,0 +1,14 @@ +#ifndef __LICENSE_H +#define __LICENSE_H + +static inline int license_is_gpl_compatible(const char *license) +{ + return (strcmp(license, "GPL") == 0 + || strcmp(license, "GPL v2") == 0 + || strcmp(license, "GPL and additional rights") == 0 + || strcmp(license, "Dual BSD/GPL") == 0 + || strcmp(license, "Dual MIT/GPL") == 0 + || strcmp(license, "Dual MPL/GPL") == 0); +} + +#endif -- cgit v1.2.3