Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix another clang / HEAD bug

  • Loading branch information...
commit 7c40e318f484099e0faf3578323875934f7fbfde 1 parent bb92b1b
@kmoore134 kmoore134 authored
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."));
Please sign in to comment.
Something went wrong with that request. Please try again.