Skip to content

Commit

Permalink
Define INADDR_LOOPBACK on systems not defining it
Browse files Browse the repository at this point in the history
  • Loading branch information
nurupo committed Aug 22, 2017
1 parent e9e5f57 commit 889d25f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toxcore/Messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
#include <assert.h>


#if !defined(INADDR_LOOPBACK)
#define INADDR_LOOPBACK 0x7f000001
#endif

static void set_friend_status(Messenger *m, int32_t friendnumber, uint8_t status, void *userdata);
static int write_cryptpacket_id(const Messenger *m, int32_t friendnumber, uint8_t packet_id, const uint8_t *data,
uint32_t length, uint8_t congestion_control);
Expand Down

0 comments on commit 889d25f

Please sign in to comment.