소스 검색

plugins/common.h: Set default MySQL port

As of MariaDB 10.2 the headers for client no longer set the
default MySQL port. Patch fixes this for any version of MariaDB
or MySQL into the future.

See also: https://bugs.freebsd.org/223387
Bernard Spil 8 년 전
부모
커밋
930ede8378
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      plugins/common.h

+ 5 - 0
plugins/common.h

@@ -168,6 +168,11 @@
 #  endif
 #  endif
 #endif
 #endif
 
 
+/* MariaDB 10.2 client does not set MYSQL_PORT */
+#ifndef MYSQL_PORT
+#  define MYSQL_PORT 3306
+#endif
+
 /*
 /*
  *
  *
  * Standard Values
  * Standard Values