Made PPP state detection work on BONE. This was the last nonworking MDR feature after the import, so Haiku mail daemon builds should now be fully functional with or without SSL and with or without BONE. Yay.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9409 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,6 +4,12 @@ UsePrivateHeaders mail ;
|
||||
|
||||
SubDirHdrs [ FDirName $(OBOS_TOP) headers os add-ons mail_daemon ] ;
|
||||
|
||||
if $(TARGET_PLATFORM) = r5 {
|
||||
SubDirC++Flags -DBUILDING_R5_LIBNET ;
|
||||
} else if $(TARGET_PLATFORM) = bone {
|
||||
SubDirC++Flags -DBONE ;
|
||||
}
|
||||
|
||||
AddResources mail_daemon : mail_daemon.rdef ;
|
||||
|
||||
Server mail_daemon :
|
||||
@@ -16,6 +22,7 @@ LinkSharedOSLibs mail_daemon :
|
||||
be
|
||||
libmail.so
|
||||
tracker
|
||||
socket
|
||||
stdc++.r4
|
||||
;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <sys/socket.h>
|
||||
#include <map>
|
||||
|
||||
#include <E-mail.h>
|
||||
@@ -40,8 +41,14 @@
|
||||
#include <MDRLanguage.h>
|
||||
|
||||
#ifdef BONE
|
||||
#include <sys/socket.h>
|
||||
#include <bone_serial_ppp.h>
|
||||
#define BONE_SERIAL_PPP_GET_STATUS 0xbe230501
|
||||
#define BSPPP_CONNECTED 4
|
||||
typedef struct {
|
||||
char if_name[32];
|
||||
int connection_status;
|
||||
status_t last_error;
|
||||
int connect_speed;
|
||||
} bsppp_status_t;
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user