summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorPavan Deolasee2016-02-15 18:28:58 +0000
committerPavan Deolasee2016-10-18 09:58:31 +0000
commite11dcb4feb26cafd3bedd411ae8cb02bce517a09 (patch)
treec8b30bba279da6cac2d114f57b7426b4a71988ee /src/common
parentc2f2b75f96482c5d04cc71c37c3bab3aad58707c (diff)
Use "expr" instead of "bc" for arithmetic since "bc" may not be available on
all platforms
Diffstat (limited to 'src/common')
-rw-r--r--src/common/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Makefile b/src/common/Makefile
index 63a187703d..b4e3f67c6e 100644
--- a/src/common/Makefile
+++ b/src/common/Makefile
@@ -64,7 +64,7 @@ ifeq ($(genmsgids), yes)
PGXL_MSG_FILEID := 1
%_srv.o: %.c %.o
$(CC) $(CFLAGS) -DPGXL_MSG_MODULE=$(PGXL_MSG_MODULE) -DPGXL_MSG_FILEID=$(PGXL_MSG_FILEID) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@
- $(eval PGXL_MSG_FILEID := $(shell echo $(PGXL_MSG_FILEID) + 1 | bc))
+ $(eval PGXL_MSG_FILEID := $(shell expr $(PGXL_MSG_FILEID) + 1))
else
%_srv.o: %.c %.o
$(CC) $(CFLAGS) $(subst -DFRONTEND,, $(CPPFLAGS)) -c $< -o $@