CHANGE add get_current_dir_name() implementation missing on some platforms
diff --git a/src/common.h b/src/common.h
index 55201c5..4d044d7 100644
--- a/src/common.h
+++ b/src/common.h
@@ -23,6 +23,7 @@
 #include <pthread.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #include "config.h"
 #include "log.h"
@@ -53,6 +54,13 @@
  */
 #define API __attribute__((visibility("default")))
 
+#ifndef  __USE_GNU
+/*
+ * If we don't have GNU extension, implement these function on your own
+ */
+char *get_current_dir_name(void);
+#endif
+
 /******************************************************************************
  * Logger
  *****************************************************************************/