Skip to content

Commit fa6870a

Browse files
committed
Merge branch 'unstable' into RELEASE_5
2 parents f534b5b + c3d3c82 commit fa6870a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ ifneq (,$(findstring armv,$(uname_M)))
8282
endif
8383
endif
8484

85+
ifneq (,$(findstring armv,$(uname_M)))
86+
FINAL_LIBS+=-latomic
87+
endif
88+
8589
# Backwards compatibility for selecting an allocator
8690
ifeq ($(USE_TCMALLOC),yes)
8791
MALLOC=tcmalloc
@@ -105,7 +109,7 @@ endif
105109
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
106110
FINAL_CXXFLAGS=$(CXX_STD) $(WARN) $(OPT) $(DEBUG) $(CXXFLAGS) $(REDIS_CFLAGS)
107111
FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
108-
FINAL_LIBS=-lm -lcurl
112+
FINAL_LIBS+=-lm -lcurl
109113
DEBUG=-g -ggdb
110114

111115
ifeq ($(uname_S),SunOS)

src/replication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ void replicationFeedSlaves(list *slaves, int dictid, robj **argv, int argc) {
357357
char szMvcc[128];
358358
incrementMvccTstamp();
359359
uint64_t mvccTstamp = getMvccTstamp();
360-
int cchMvccNum = snprintf(szMvcc, sizeof(szMvcc), "%lu", mvccTstamp);
361-
int cchMvcc = snprintf(szMvcc, sizeof(szMvcc), "$%d\r\n%lu\r\n", cchMvccNum, mvccTstamp);
360+
int cchMvccNum = snprintf(szMvcc, sizeof(szMvcc), "%" PRIu64, mvccTstamp);
361+
int cchMvcc = snprintf(szMvcc, sizeof(szMvcc), "$%d\r\n%" PRIu64 "\r\n", cchMvccNum, mvccTstamp);
362362
cchMvcc = std::min<int>(cchMvcc, sizeof(szMvcc)); // tricky snprintf
363363

364364
/* Write the command to the replication backlog if any. */

0 commit comments

Comments
 (0)