aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2020-08-20 09:52:54 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2020-08-20 09:52:54 +0000
commit1a7c75352f105bd92c4d7b45e6c3b72e77031f6f (patch)
treeefc4f42c8d47d7e043216f48f2f1f88f56edf923 /comms
parent7757f30c025179e7a8f15dbc560735daa95ad028 (diff)
downloadports-1a7c75352f105bd92c4d7b45e6c3b72e77031f6f.tar.gz
ports-1a7c75352f105bd92c4d7b45e6c3b72e77031f6f.zip
comms/minicom: fix build with -fno-common (clang 11 and gcc 10)
PORTREVISION not bumped as it fixes build for FreeBSD 13. Reported by: pkg-fallout
Notes
Notes: svn path=/head/; revision=545516
Diffstat (limited to 'comms')
-rw-r--r--comms/minicom/files/patch-minicom.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/comms/minicom/files/patch-minicom.h b/comms/minicom/files/patch-minicom.h
new file mode 100644
index 000000000000..a2d397e30469
--- /dev/null
+++ b/comms/minicom/files/patch-minicom.h
@@ -0,0 +1,30 @@
+--- src/minicom.h.orig 2020-08-20 23:32:58.277841000 +0700
++++ src/minicom.h 2020-08-20 23:49:18.458829000 +0700
+@@ -110,13 +110,13 @@
+
+ EXTERN char *dial_name; /* System we're conneced to */
+ EXTERN char *dial_number; /* Number we've dialed. */
+-EXTERN char *dial_user; /* Our username there */
+-EXTERN char *dial_pass; /* Our password */
++extern char *dial_user; /* Our username there */
++extern char *dial_pass; /* Our password */
+
+ #ifdef USE_SOCKET
+-EXTERN int portfd_is_socket; /* File descriptor is a unix socket */
+-EXTERN int portfd_is_connected; /* 1 if the socket is connected */
+-EXTERN struct sockaddr_un portfd_sock_addr; /* the unix socket address */
++extern int portfd_is_socket; /* File descriptor is a unix socket */
++extern int portfd_is_connected; /* 1 if the socket is connected */
++extern struct sockaddr_un portfd_sock_addr; /* the unix socket address */
+ #define portfd_connected ((portfd_is_socket && !portfd_is_connected) \
+ ? -1 : portfd)
+ #else
+@@ -142,7 +142,7 @@
+ EXTERN int st_attr; /* Status Bar attributes. */
+
+ /* jl 04.09.97 conversion tables */
+-EXTERN unsigned char vt_outmap[256], vt_inmap[256];
++extern unsigned char vt_outmap[256], vt_inmap[256];
+
+ /* MARK updated 02/17/95 - history buffer */
+ EXTERN int num_hist_lines; /* History buffer size */