Browse files

Fix another clang / HEAD bug

  • Loading branch information...
1 parent bb92b1b commit 7c40e318f484099e0faf3578323875934f7fbfde @kmoore134 kmoore134 committed Oct 1, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 src-qt4/pc-bootconfig/main.cpp
View
4 src-qt4/pc-bootconfig/main.cpp
@@ -4,6 +4,8 @@
#include <QMessageBox>
#include <QDebug>
#include "mainUI.h"
+#include <unistd.h>
+#include <sys/types.h>
#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."));

0 comments on commit 7c40e31

Please sign in to comment.