aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/sysinfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/sysinfo.h')
-rw-r--r--src/blogc/sysinfo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/blogc/sysinfo.h b/src/blogc/sysinfo.h
index f26662a..25f2177 100644
--- a/src/blogc/sysinfo.h
+++ b/src/blogc/sysinfo.h
@@ -19,6 +19,14 @@
#endif /* HAVE_GETHOSTNAME */
#endif /* HAVE_UNISTD_H */
+#ifdef HAVE_UNISTD_H
+#ifdef HAVE_SYS_TYPES_H
+#ifdef HAVE_PWD_H
+#define HAVE_SYSINFO_USERNAME 1
+#endif /* HAVE_PWD_H */
+#endif /* HAVE_SYS_TYPES_H */
+#endif /* HAVE_UNISTD_H */
+
#ifdef HAVE_TIME_H
#define HAVE_SYSINFO_DATETIME 1
#endif /* HAVE_TIME_H */
@@ -27,6 +35,8 @@
char* blogc_sysinfo_get_hostname(void);
void blogc_sysinfo_inject_hostname(bc_trie_t *global);
+char* blogc_sysinfo_get_username(void);
+void blogc_sysinfo_inject_username(bc_trie_t *global);
char* blogc_sysinfo_get_datetime(void);
void blogc_sysinfo_inject_datetime(bc_trie_t *global);