From 7c40e318f484099e0faf3578323875934f7fbfde Mon Sep 17 00:00:00 2001 From: Kris Moore Date: Tue, 1 Oct 2013 17:19:30 -0400 Subject: [PATCH] Fix another clang / HEAD bug --- src-qt4/pc-bootconfig/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src-qt4/pc-bootconfig/main.cpp b/src-qt4/pc-bootconfig/main.cpp index 71eb6bf0f..fdb821cc7 100644 --- a/src-qt4/pc-bootconfig/main.cpp +++ b/src-qt4/pc-bootconfig/main.cpp @@ -4,6 +4,8 @@ #include #include #include "mainUI.h" +#include +#include #ifndef PREFIX #define PREFIX QString("/usr/local/") @@ -29,7 +31,7 @@ int main(int argc, char ** argv) QObject::connect(&a, SIGNAL(messageReceived(const QString&)), &w, SLOT(slotSingleInstance()) ); w.show(); //Check for root - if (0 != geteuid()) + if (0 != getuid()) { QMessageBox msg; msg.setText(w.tr("This application requires administrator privileges for operation."));