summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-24 20:23:46 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-09-24 20:23:46 +0000
commiteac93b9a61a2ddf34b750c3110f4ed1b455e681f (patch)
treee9ff8ce07eed792bd18cef1fde6b5701560be266
parentPrint improved error message when no Python interpreter is available. (diff)
downloadeselect-python-eac93b9a61a2ddf34b750c3110f4ed1b455e681f.tar.gz
eselect-python-eac93b9a61a2ddf34b750c3110f4ed1b455e681f.tar.bz2
eselect-python-eac93b9a61a2ddf34b750c3110f4ed1b455e681f.zip
Include config.h before system headers (bug #338560).
-rw-r--r--python-wrapper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/python-wrapper.c b/python-wrapper.c
index 0a10bc9..6596c30 100644
--- a/python-wrapper.c
+++ b/python-wrapper.c
@@ -1,6 +1,9 @@
/* Copyright 1999-2010 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
*/
+
+#include "config.h"
+
#include <dirent.h>
#include <limits.h>
#include <stdlib.h>
@@ -9,8 +12,6 @@
#include <unistd.h>
#include <sys/stat.h>
-#include "config.h"
-
#define ENVD_CONFIG "/etc/env.d/python/config"
/* 127 is the standard return code for "command not found" */