Ticket #717: malsync.patch

File malsync.patch, 2.7 KB (added by fenner@…, 21 years ago)

malsync 2.1.1 patch file

  • Makefile

    diff -ur Makefile /sw/src/malsync-2.1.1-1/malsync/Makefile
    old new  
    1515endif
    1616
    1717TREETOP = .
    18 PILOT_LINK_DIR = $(TREETOP)/pilot-link-0.11.5
    1918
    2019CFLAGS = -Wall -g -DMALSYNC -I$(TREETOP)/mal/common \
    21   -I$(TREETOP)/mal/client/common -I$(PILOT_LINK_DIR)/include \
     20  -I$(TREETOP)/mal/client/common -I$(PREFIX)/include \
    2221  -I$(TREETOP)/mal/client/unix
    2322
    2423ifeq ($(PLAT),Darwin)
     
    7372
    7473$(TARGET): $(OBJS)
    7574        $(CC) $(DYNLINK) $(CFLAGS) -o $@ $(OBJS) \
    76           -L${PILOT_LINK_DIR}/libpisock/.libs -lpisock $(LINKLIBS)
     75          -L$(PREFIX)/lib -lpisock $(LINKLIBS)
    7776clean:
    7877        rm -f $(OBJS) $(TARGET)
    7978
  • mal/client/common/AGCommandProcessor.c

    diff -ur mal/client/common/AGCommandProcessor.c /sw/src/malsync-2.1.1-1/malsync/mal/client/common/AGCommandProcessor.c
    old new  
    907907    case AG_DEVICEINFO_CMD:     
    908908    case AG_NEWIDS_CMD:     
    909909    default:
    910         #ifdef DEBUG_COMMANDS
     910#ifdef DEBUG_COMMANDS
    911911        printf("\tThe server should have NEVER sent a %s command.\n", name);
    912         #endif
     912#endif
    913913        rc = AGCLIENT_ERR;
    914914        break;
    915915    }
  • mal/common/AGBufferedNet.c

    diff -ur mal/common/AGBufferedNet.c /sw/src/malsync-2.1.1-1/malsync/mal/common/AGBufferedNet.c
    old new  
    2626
    2727#ifdef __unix__
    2828
    29     #include <errno.h>
     29#include <errno.h>
    3030   
    3131#endif // __unix__
    3232
    3333/*************************************************************************************/
    3434#ifdef __palmos__
    3535
    36     #define BUFSIZE 512
    37     #define ALMOST_INFINITE_TIMEOUT (10 * sysTicksPerSecond)
     36#define BUFSIZE 512
     37#define ALMOST_INFINITE_TIMEOUT (10 * sysTicksPerSecond)
    3838
    3939#else
    4040
    41     #define BUFSIZE 4096
     41#define BUFSIZE 4096
    4242   
    4343#endif
    4444
  • mal/common/AGNet.c

    diff -ur mal/common/AGNet.c /sw/src/malsync-2.1.1-1/malsync/mal/common/AGNet.c
    old new  
    2626//#include <stdio.h>    (adam) temporary hack - comment out so it will build on ce
    2727
    2828#ifndef _WIN32
    29 #include <ctype.h> //PENDING(klobad) not needed on palm or win remove??
     29#include <ctype.h>
     30//PENDING(klobad) not needed on palm or win remove??
    3031#include <errno.h>
    3132#endif
    3233
     
    455456    case EINPROGRESS:
    456457      return AG_NET_WOULDBLOCK;
    457458#ifdef _HPUX_SOURCE
    458    #ifndef DARWIN
     459#ifndef DARWIN
    459460      case EWOULDBLOCK:
    460    #endif
     461#endif
    461462#endif
    462463    case EAGAIN:
    463464      return AG_NET_WOULDBLOCK;