]> git.saurik.com Git - redis.git/commitdiff
show GCC version in INFO output.
authorantirez <antirez@gmail.com>
Tue, 10 Jan 2012 17:37:16 +0000 (18:37 +0100)
committerantirez <antirez@gmail.com>
Tue, 10 Jan 2012 17:37:16 +0000 (18:37 +0100)
src/redis.c

index 091461159e165c8c8be49663f0a8f6e6872bdb91..5b585c479828817689653d8169d029bb91a5aa0e 100644 (file)
@@ -1425,6 +1425,7 @@ sds genRedisInfoString(char *section) {
             "redis_git_dirty:%d\r\n"
             "arch_bits:%s\r\n"
             "multiplexing_api:%s\r\n"
+            "gcc_version:%d.%d.%d\r\n"
             "process_id:%ld\r\n"
             "tcp_port:%d\r\n"
             "uptime_in_seconds:%ld\r\n"
@@ -1435,6 +1436,11 @@ sds genRedisInfoString(char *section) {
             strtol(redisGitDirty(),NULL,10) > 0,
             (sizeof(long) == 8) ? "64" : "32",
             aeGetApiName(),
+#ifdef __GNUC__
+            __GNUC__,__GNUC_MINOR__,__GNUC_PATCHLEVEL__,
+#else
+            0,0,0,
+#endif
             (long) getpid(),
             server.port,
             uptime,