[gnome-color-manager/gnome-3-6] 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/gnome-3-6] gcm_calibrate_is_livecd() should be linux-only
- Date: Mon, 15 Jul 2013 08:59:43 +0000 (UTC)
commit 753d2e8f6990c9e81c6462a00e47be13763b7f10
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 7206994..4d632d6 100644
--- a/src/gcm-calibrate-main.c
+++ b/src/gcm-calibrate-main.c
@@ -774,6 +774,7 @@ gcm_calib_setup_page_intro (GcmCalibratePriv *calib)
static gboolean
gcm_calibrate_is_livecd (void)
{
+#ifdef __linux__
gboolean ret;
gchar *data = NULL;
GError *error = NULL;
@@ -791,6 +792,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]