Changeset e252d8c
- Timestamp:
- 2014-09-27T14:54:35Z (10 years ago)
- Branches:
- master
- Children:
- ebe2c5e, f329dfc
- Parents:
- d348377
- Files:
-
- 3 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rd348377 re252d8c 10 10 11 11 # Program variables 12 objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_channel.o irc_commands.o irc_send.o irc_user.o irc_util.o nick.o $(OTR_BI) query.o root_commands.o set.o storage.o $(STORAGE_OBJS) 12 objects = bitlbee.o dcc.o help.o ipc.o irc.o irc_im.o irc_channel.o irc_commands.o irc_send.o irc_user.o irc_util.o nick.o $(OTR_BI) query.o root_commands.o set.o storage.o $(STORAGE_OBJS) unix.o conf.o log.o 13 13 headers = $(wildcard *.h lib/*.h protocols/*.h) 14 14 subdirs = lib protocols 15 15 16 ifeq ($(TARGET),i586-mingw32msvc) 17 objects += win32.o 18 LDFLAGS+=-lws2_32 19 EFLAGS+=-lsecur32 20 OUTFILE=bitlbee.exe 21 else 22 objects += unix.o conf.o log.o 23 OUTFILE=bitlbee 24 endif 16 OUTFILE = bitlbee 25 17 26 18 # Expansion of variables -
bitlbee.c
rd348377 re252d8c 127 127 global.listen_watch_source_id = b_input_add( global.listen_socket, B_EV_IO_READ, bitlbee_io_new_client, NULL ); 128 128 129 #ifndef _WIN32130 129 if( !global.conf->nofork ) 131 130 { … … 151 150 } 152 151 } 153 #endif154 152 155 153 if( global.conf->runmode == RUNMODE_FORKDAEMON ) … … 159 157 ipc_master_listen_socket(); 160 158 161 #ifndef _WIN32162 159 if( ( fp = fopen( global.conf->pidfile, "w" ) ) ) 163 160 { … … 169 166 log_message( LOGLVL_WARNING, "Warning: Couldn't write PID to `%s'", global.conf->pidfile ); 170 167 } 171 #endif172 168 173 169 if( !global.conf->nofork ) … … 295 291 } 296 292 297 #ifndef _WIN32298 293 if( global.conf->runmode == RUNMODE_FORKDAEMON ) 299 294 { … … 357 352 } 358 353 else 359 #endif360 354 { 361 355 log_message( LOGLVL_INFO, "Creating new connection with fd %d.", new_socket ); -
bitlbee.h
rd348377 re252d8c 35 35 #endif 36 36 37 /* Depend on Windows 2000 for now since we need getaddrinfo() */38 #define _WIN32_WINNT 0x050139 40 37 #define PACKAGE "BitlBee" 41 38 #define BITLBEE_VERSION "3.2.2" … … 60 57 #include <ctype.h> 61 58 #include <errno.h> 62 63 #ifndef _WIN3264 59 #include <syslog.h> 65 #endif66 67 60 #include <glib.h> 68 61 #include <gmodule.h> -
configure
rd348377 re252d8c 484 484 elif [ "$ssl" = "nss" ]; then 485 485 detect_nss 486 elif [ "$ssl" = "sspi" ]; then487 echo488 486 elif [ "$ssl" = "openssl" ]; then 489 487 echo … … 806 804 ;; 807 805 CYGWIN* ) 808 echo 'Cygwin is not officially supported.'809 806 ;; 810 807 Windows ) 808 echo 'Native windows compilation is not supported anymore, use cygwin instead.' 811 809 ;; 812 810 * ) -
help.c
rd348377 re252d8c 42 42 *help = h = g_new0 ( help_t, 1 ); 43 43 44 h->fd = open( helpfile, O_RDONLY 45 #ifdef _WIN32 46 | O_BINARY 47 #endif 48 ); 44 h->fd = open( helpfile, O_RDONLY ); 49 45 50 46 if( h->fd == -1 ) -
ipc.c
rd348377 re252d8c 28 28 #include "ipc.h" 29 29 #include "commands.h" 30 #ifndef _WIN3231 30 #include <sys/uio.h> 32 31 #include <sys/un.h> 33 #endif34 32 35 33 GSList *child_list = NULL; … … 843 841 } 844 842 845 #ifndef _WIN32846 843 char *ipc_master_save_state() 847 844 { … … 942 939 return 1; 943 940 } 944 #else945 int ipc_master_listen_socket()946 {947 /* FIXME: Open named pipe \\.\BITLBEE */948 return 0;949 }950 #endif951 941 952 942 int ipc_master_load_state( char *statefile ) -
lib/events.h
rd348377 re252d8c 37 37 38 38 #include <sys/types.h> 39 #ifndef _WIN3240 39 #include <sys/socket.h> 41 40 #include <netdb.h> 42 41 #include <netinet/in.h> 43 #endif44 42 #include <glib.h> 45 43 #include <gmodule.h> -
lib/events_glib.c
rd348377 re252d8c 31 31 #include <string.h> 32 32 #include <sys/types.h> 33 #ifndef _WIN3234 33 #include <sys/socket.h> 35 34 #include <netdb.h> … … 37 36 #include <arpa/inet.h> 38 37 #include <unistd.h> 39 #else40 #include "sock.h"41 #define ETIMEDOUT WSAETIMEDOUT42 #define EINPROGRESS WSAEINPROGRESS43 #endif44 38 #include <fcntl.h> 45 39 #include <errno.h> -
lib/misc.c
rd348377 re252d8c 420 420 void random_bytes( unsigned char *buf, int count ) 421 421 { 422 #ifndef _WIN32423 422 static int use_dev = -1; 424 423 … … 470 469 471 470 if( !use_dev ) 472 #endif473 471 { 474 472 int i; -
lib/proxy.c
rd348377 re252d8c 26 26 #include <string.h> 27 27 #include <sys/types.h> 28 #ifndef _WIN3229 28 #include <sys/socket.h> 30 29 #include <netdb.h> … … 32 31 #include <arpa/inet.h> 33 32 #include <unistd.h> 34 #else35 #include "sock.h"36 #define ETIMEDOUT WSAETIMEDOUT37 #define EINPROGRESS WSAEINPROGRESS38 #endif39 33 #include <fcntl.h> 40 34 #include <errno.h> … … 76 70 len = sizeof(error); 77 71 78 #ifndef _WIN3279 72 if (getsockopt(source, SOL_SOCKET, SO_ERROR, &error, &len) < 0 || error) { 80 73 if ((phb->gai_cur = phb->gai_cur->ai_next)) { … … 101 94 return FALSE; 102 95 } 103 #endif104 96 freeaddrinfo(phb->gai); 105 97 sock_make_blocking(source); -
lib/proxy.h
rd348377 re252d8c 28 28 29 29 #include <sys/types.h> 30 #ifndef _WIN3231 30 #include <sys/socket.h> 32 31 #include <netdb.h> 33 32 #include <netinet/in.h> 34 #endif35 33 #include <glib.h> 36 34 #include <gmodule.h> -
protocols/msn/soap.h
rd348377 re252d8c 36 36 #include <string.h> 37 37 #include <sys/types.h> 38 #ifndef _WIN3239 38 #include <sys/socket.h> 40 39 #include <netinet/in.h> 41 40 #include <arpa/inet.h> 42 41 #include <unistd.h> 43 #endif44 42 #include "nogaim.h" 45 43 -
protocols/oscar/rxqueue.c
rd348377 re252d8c 9 9 #include <aim.h> 10 10 11 #ifndef _WIN3212 11 #include <sys/socket.h> 13 #endif14 12 15 13 /* -
protocols/oscar/txqueue.c
rd348377 re252d8c 9 9 #include "im.h" 10 10 11 #ifndef _WIN3212 11 #include <sys/socket.h> 13 #endif14 12 15 13 /* -
protocols/yahoo/libyahoo2.c
rd348377 re252d8c 48 48 */ 49 49 50 #ifndef _WIN3251 50 #include <unistd.h> 52 #endif53 51 #include <errno.h> 54 52 #include <stdio.h> -
protocols/yahoo/yahoo_httplib.c
rd348377 re252d8c 38 38 39 39 #include <errno.h> 40 #ifndef _WIN3241 40 #include <unistd.h> 42 #endif43 41 #include <ctype.h> 44 42 #include "yahoo2.h" -
protocols/yahoo/yahoo_util.h
rd348377 re252d8c 65 65 void y_strfreev(char **vector); 66 66 67 #ifndef _WIN3268 67 int strncasecmp(const char *s1, const char *s2, size_t n); 69 68 int strcasecmp(const char *s1, const char *s2); … … 73 72 int snprintf(char *str, size_t size, const char *format, ...); 74 73 int vsnprintf(char *str, size_t size, const char *format, va_list ap); 75 #endif76 74 77 75 #endif -
sock.h
rd348377 re252d8c 2 2 #include <fcntl.h> 3 3 4 #ifndef _WIN325 4 #include <unistd.h> 6 5 #include <sys/socket.h> … … 12 11 #define sockerr_again() (errno == EINPROGRESS || errno == EINTR) 13 12 void closesocket( int fd ); 14 #else15 # include <winsock2.h>16 # include <ws2tcpip.h>17 # if !defined(BITLBEE_CORE) && defined(_MSC_VER)18 # pragma comment(lib,"bitlbee.lib")19 # endif20 # include <io.h>21 # define sock_make_nonblocking(fd) { int non_block = 1; ioctlsocket(fd, FIONBIO, &non_block); }22 # define sock_make_blocking(fd) { int non_block = 0; ioctlsocket(fd, FIONBIO, &non_block); }23 # define sockerr_again() (WSAGetLastError() == WSAEINTR || WSAGetLastError() == WSAEINPROGRESS || WSAGetLastError() == WSAEWOULDBLOCK)24 # define ETIMEDOUT WSAETIMEDOUT25 # define sleep(a) Sleep(a*1000)26 #endif
Note: See TracChangeset
for help on using the changeset viewer.