< prev index next >
src/jdk.sctp/unix/native/libsctp/Sctp.h
Print this page
rev 57430 : 8235903: GCC default -fno-common exposes "multiple definition" link errors
Summary: Fixed C standard tentative definitions with extern keyword
Reviewed-by: alanb
*** 1,7 ****
/*
! * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 320,334 ****
typedef int sctp_peeloff_func(int sock, sctp_assoc_t id);
#endif /* __linux__ */
! sctp_getladdrs_func* nio_sctp_getladdrs;
! sctp_freeladdrs_func* nio_sctp_freeladdrs;
! sctp_getpaddrs_func* nio_sctp_getpaddrs;
! sctp_freepaddrs_func* nio_sctp_freepaddrs;
! sctp_bindx_func* nio_sctp_bindx;
! sctp_peeloff_func* nio_sctp_peeloff;
jboolean loadSocketExtensionFuncs(JNIEnv* env);
#endif /* !SUN_NIO_CH_SCTP_H */
--- 320,334 ----
typedef int sctp_peeloff_func(int sock, sctp_assoc_t id);
#endif /* __linux__ */
! extern sctp_getladdrs_func* nio_sctp_getladdrs;
! extern sctp_freeladdrs_func* nio_sctp_freeladdrs;
! extern sctp_getpaddrs_func* nio_sctp_getpaddrs;
! extern sctp_freepaddrs_func* nio_sctp_freepaddrs;
! extern sctp_bindx_func* nio_sctp_bindx;
! extern sctp_peeloff_func* nio_sctp_peeloff;
jboolean loadSocketExtensionFuncs(JNIEnv* env);
#endif /* !SUN_NIO_CH_SCTP_H */
< prev index next >