treewide: NIX_*_COMPILE -> string

This commit is contained in:
Robin Gloster
2019-12-31 00:13:29 +01:00
committed by Jan Tojnar
parent ab0cfd9e03
commit 5f2b92e3ec
61 changed files with 73 additions and 111 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
void sigint(int sig) FUNCATTR_NORETURN;
-inline void init(void);
+static inline void init(void);
/* clear stuff and exit */
--- a/src/options.c
+++ b/src/options.c
@@ -41,7 +41,7 @@ stdenv.mkDerivation rec {
# This code uses inline in the gnu89 sense: see http://clang.llvm.org/compatibility.html#inline
NIX_CFLAGS_COMPILE = if stdenv.cc.isClang then "-std=gnu89" else null;
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-std=gnu89";
meta = with stdenv.lib; {
description = "A small and simple console-based live network and disk io bandwidth monitor";