Merge branch 'master' of git://github.com/chunkeey/carl9170fw
[carl9170fw.git] / config / lkc.h
index 7aa9db0b2a7776513bfb7ad7f9a79d567509861a..f8aee5fc6d5e607625fc9e7f93bcbcf7f2e9f13b 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
 #endif
 static inline const char *CONFIG_prefix(void)
 {
-       return CONFIG_;
+       return getenv( "CONFIG_" ) ?: CONFIG_;
 }
 #undef CONFIG_
 #define CONFIG_ CONFIG_prefix()
@@ -122,6 +122,8 @@ void menu_set_type(int type);
 /* util.c */
 struct file *file_lookup(const char *name);
 int file_write_dep(const char *name);
+void *xmalloc(size_t size);
+void *xcalloc(size_t nmemb, size_t size);
 
 struct gstr {
        size_t len;