[gnome-builder] rg: do nothing on unsupported systems



commit 1440ebdfb4561b22385cd3c74c1ab53e857cd9a4
Author: Christian Hergert <christian hergert me>
Date:   Tue Sep 1 00:52:51 2015 -0700

    rg: do nothing on unsupported systems
    
    Rather than erring out, just do nothing for now on
    unsupported systems. We should definitely add support
    for a few more, but this get’s us going.

 contrib/rg/rg-cpu-table.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/contrib/rg/rg-cpu-table.c b/contrib/rg/rg-cpu-table.c
index 79aa34a..95eb7fa 100644
--- a/contrib/rg/rg-cpu-table.c
+++ b/contrib/rg/rg-cpu-table.c
@@ -16,13 +16,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#if !defined(__linux__) && !defined(__FreeBSD__)
-# error "This file only supports Linux and FreeBSD."
-#endif
-
 #include <ctype.h>
 #include <stdio.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__)
 # include <errno.h>
 # include <sys/resource.h>
 # include <sys/sysctl.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]