Changeset 22c5fe4ae5640b1f2e7358dccbc720faa84616a2

Show
Ignore:
Timestamp:
03/10/07 16:06:06 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1173539166 +0000
git-parent:

[10ee356e2279fb0526b980927fe563a2cccea749]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1173539166 +0000
Message:

Partial Win32 compile fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libs/srtp/srtp.c

    r10ee356 r22c5fe4  
    3333 
    3434#include <gcrypt.h> 
    35  
    36 #include <netinet/in.h> 
    37 #include <pthread.h> 
    3835 
    3936/* TODO: 
     
    8077}; 
    8178 
    82 #ifndef WIN32 
     79#ifdef WIN32 
     80# include <winsock2.h> 
     81#else 
     82# include <netinet/in.h> 
     83# include <pthread.h> 
    8384GCRY_THREAD_OPTION_PTHREAD_IMPL; 
    8485#endif 
     
    466467 * @return 0 on success, in case of error: 
    467468 *  EINVAL  malformatted RTP packet 
    468  *  ENOBUFS bufsize is too small 
     469 *  ENOSPC  bufsize is too small (to add authentication tag) 
    469470 */ 
    470471int 
     
    477478 
    478479    if (bufsize < (len + s->rtp.mac_len)) 
    479         return ENOBUFS
     480        return ENOSPC
    480481 
    481482    /* FIXME: HMAC and anti-replay */