[gnome-color-manager] gcm_calibrate_is_livecd() should be linux-only
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] gcm_calibrate_is_livecd() should be linux-only
- Date: Wed, 8 May 2013 09:05:21 +0000 (UTC)
commit bcc6edc63f53d1332fd5b75ec4eedbe1841492ac
Author: Antoine Jacoutot <ajacoutot gnome org>
Date: Wed May 8 10:56:23 2013 +0200
gcm_calibrate_is_livecd() should be linux-only
/proc/cmdline only exists on Linux and in this case used to check
whether we are running out of a LiveCD.
Signed-off-by: Richard Hughes <richard hughsie com>
src/gcm-calibrate-main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-calibrate-main.c b/src/gcm-calibrate-main.c
index 768c469..1043327 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -770,6 +770,7 @@ gcm_calib_setup_page_intro (GcmCalibratePriv *priv)
static gboolean
gcm_calibrate_is_livecd (void)
{
+#ifdef __linux__
gboolean ret;
gchar *data = NULL;
GError *error = NULL;
@@ -787,6 +788,9 @@ gcm_calibrate_is_livecd (void)
out:
g_free (data);
return ret;
+#else
+ return FALSE;
+#endif
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]