diff --git a/src/common.h b/src/common.h
index b07db9d4b053682d276b60aa51f1b9e9b6fff90c..f12b5e4d73b659503e3f7d959e4e1fd4cbba1a3d 100644 (file)
--- a/src/common.h
+++ b/src/common.h
#include "collectd.h"
#include "plugin.h"
+#if HAVE_PWD_H
+# include <pwd.h>
+#endif
+
#define sfree(ptr) \
if((ptr) != NULL) { \
free(ptr); \
char **ret_type, char **ret_type_instance);
int parse_values (char *buffer, value_list_t *vl, const data_set_t *ds);
+#if !HAVE_GETPWNAM_R
+int getpwnam_r (const char *name, struct passwd *pwbuf, char *buf,
+ size_t buflen, struct passwd **pwbufp);
+#endif
+
#endif /* COMMON_H */