]> git.lyx.org Git - lyx.git/blobdiff - src/support/userinfo.C
make "make distcheck" work
[lyx.git] / src / support / userinfo.C
index b45797287fa85743ec9bd90b2669c5dc2ee75f60..758ce34572a9e0e8f755ec938a66c5989fc2c01f 100644 (file)
 #include <config.h>
 
 #include "support/userinfo.h"
-#include "support/filetools.h"
+#include "support/environment.h"
 
 #include <boost/assert.hpp>
 
 #include <pwd.h>
 #ifdef HAVE_UNISTD_H
-#include <unistd.h>
+# include <unistd.h>
 #endif
 #include <sys/types.h>
 
@@ -40,9 +40,9 @@ string const user_name()
 
 string const user_email()
 {
-       string email = GetEnv("EMAIL_ADDRESS");
+       string email = getEnv("EMAIL_ADDRESS");
        if (email.empty())
-               email = GetEnv("EMAIL");
+               email = getEnv("EMAIL");
        return email;
 }