Changeset 4358b10


Ignore:
Timestamp:
2008-05-04T13:32:15Z (12 years ago)
Author:
ulim <a.sporto+bee@…>
Branches:
master
Children:
29c1456
Parents:
0cab388
Message:

ulibc support, fixes "Invalid SOCKS5 Connect message" problem

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • dcc.c

    r0cab388 r4358b10  
    2929#include <netinet/tcp.h>
    3030#include <regex.h>
     31
     32/* Some ifdefs for ulibc (Thanks to Whoopie) */
     33#ifndef HOST_NAME_MAX
     34#include <sys/param.h>
     35#ifdef MAXHOSTNAMELEN
     36#define HOST_NAME_MAX MAXHOSTNAMELEN
     37#else
     38#define HOST_NAME_MAX 255
     39#endif
     40#endif
     41
     42#ifndef AI_NUMERICSERV
     43#define AI_NUMERICSERV 0x0400   /* Don't use name resolution.  */
     44#endif
    3145
    3246/*
  • irc.c

    r0cab388 r4358b10  
    2929#include "ipc.h"
    3030#include "dcc.h"
    31 
    32 #include <regex.h>
    33 #include <netinet/in.h>
    3431
    3532static gboolean irc_userping( gpointer _irc, int fd, b_input_condition cond );
  • protocols/jabber/iq.c

    r0cab388 r4358b10  
    612612        {
    613613                /* Who cares about the unknown... */
    614                 imcb_log( ic, "Couldnt find the man: %s", bare_jid);
     614                imcb_log( ic, "Couldn't find buddy: %s", bare_jid);
    615615                return 0;
    616616        }
     
    626626                imcb_log( ic, "WARNING: Couldn't generate feature query" );
    627627                xt_free_node( node );
     628                return 0;
    628629        }
    629630
     
    648649        {
    649650                /* Who cares about the unknown... */
    650                 imcb_log( ic, "Couldnt find the man: %s", xt_find_attr( node, "from"));
     651                imcb_log( ic, "Couldn't find buddy: %s", xt_find_attr( node, "from"));
    651652                return 0;
    652653        }
  • protocols/jabber/s5bytestream.c

    r0cab388 r4358b10  
    2626#include <poll.h>
    2727
     28/* Some ifdefs for ulibc (Thanks to Whoopie) */
     29#ifndef HOST_NAME_MAX
     30#include <sys/param.h>
     31#ifdef MAXHOSTNAMELEN
     32#define HOST_NAME_MAX MAXHOSTNAMELEN
     33#else
     34#define HOST_NAME_MAX 255
     35#endif
     36#endif
     37
    2838struct bs_transfer {
    2939
     
    10481058                        struct socks5_message socks5_connect;
    10491059                        int msgsize = sizeof( struct socks5_message );
    1050 
    1051                         if( !jabber_bs_peek( bt, &socks5_connect, msgsize ) )
     1060                        int ret;
     1061
     1062                        if( !( ret = jabber_bs_peek( bt, &socks5_connect, msgsize ) ) )
    10521063                                return FALSE;
     1064
     1065                        if( ret < msgsize )
     1066                                return TRUE;
    10531067
    10541068                        if( !( socks5_connect.ver == 5) ||
Note: See TracChangeset for help on using the changeset viewer.