[gutil] fix compilation warning on macOS

This patch fixes compilation warning on contemporary versions of Xcode
(starting at least with Xcode 12.4):

  In file included from src/kudu/util/status.h:30:
  In file included from src/kudu/gutil/macros.h:14:
  src/kudu/gutil/port.h:237:9: warning: 'MSG_NOSIGNAL' macro redefined [-Wmacro-redefined]
  #define MSG_NOSIGNAL 0
	  ^
  <SDK>/usr/include/sys/socket.h:588:9: note: previous definition is here

Change-Id: Ie0ec3876ccb8dcc6f67725cfb4a7380b092e0384
Reviewed-on: http://gerrit.cloudera.org:8080/19200
Tested-by: Kudu Jenkins
Reviewed-by: Yifan Zhang <chinazhangyifan@163.com>
diff --git a/src/kudu/gutil/port.h b/src/kudu/gutil/port.h
index f5155b2..a1ebd85 100644
--- a/src/kudu/gutil/port.h
+++ b/src/kudu/gutil/port.h
@@ -233,8 +233,11 @@
   return maxlen;
 }
 
-// Doesn't exist on OSX; used in google.cc for send() to mean "no flags".
+// MSG_NOSIGNAL doesn't exist on earlier versions of Darwin/OSX;
+// it's used in google.cc for send() to mean "no flags".
+#if !defined(MSG_NOSIGNAL)
 #define MSG_NOSIGNAL 0
+#endif
 
 // No SIGPWR on MacOSX.  SIGINFO seems suitably obscure.
 #undef GOOGLE_OBSCURE_SIGNAL