Changeset 13262


Ignore:
Timestamp:
Apr 7, 2012, 12:00:23 AM (10 years ago)
Author:
jordan
Message:

get miniupnpc building on non-BSD systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/third-party/miniupnp/miniupnpc.c

    r13258 r13262  
    1919
    2020#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(MACOSX) && !defined(_WIN32)
     21/* miniupnpc's unmodified source says _BSD_SOURCE or _GNU_SOURCE is needed
     22   for struct ip_mreqn... since the above #if chain rules out the former,
     23   use the latter here */
     24#define _GNU_SOURCE
    2125#define HAS_IP_MREQN
    2226#endif
     
    113117 *   pointer - OK
    114118 *   NULL - error */
    115 char * simpleUPnPcommand2(int s, const char * url, const char * service,
    116                        const char * action, struct UPNParg * args,
    117                        int * bufsize, const char * httpversion)
     119static char *
     120simpleUPnPcommand2(int s, const char * url, const char * service,
     121                   const char * action, struct UPNParg * args,
     122                   int * bufsize, const char * httpversion)
    118123{
    119124        char hostname[MAXHOSTNAMELEN+1];
Note: See TracChangeset for help on using the changeset viewer.