File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
/* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
13
13
/* */
14
14
/*************************************************************************/
15
+ #define _POSIX_C_SOURCE 200809L
15
16
#ifdef FOR_LT
16
17
17
18
#include "lt-defs.h"
@@ -547,7 +548,7 @@ static FILE16 *http_open(const char *url,
547
548
addr .sin_family = AF_INET ;
548
549
/* If we were really enthusiastic, we would try all the host's addresses */
549
550
memcpy (& addr .sin_addr , hostent -> h_addr_list [0 ], hostent -> h_length );
550
- addr .sin_port = htons ((u_short )(port == -1 ? 80 : port ));
551
+ addr .sin_port = htons ((uint16_t )(port == -1 ? 80 : port ));
551
552
552
553
/* Connect */
553
554
Original file line number Diff line number Diff line change 41
41
**
42
42
** Unix system-dependant routines for editline library.
43
43
*/
44
+ #define _POSIX_C_SOURCE 200809L
44
45
#include "editline.h"
45
46
46
47
#include <unistd.h>
You can’t perform that action at this time.
0 commit comments