]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix win32 build, not without some pain
authorKern Sibbald <kern@sibbald.com>
Wed, 26 Nov 2008 17:59:54 +0000 (17:59 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 26 Nov 2008 17:59:54 +0000 (17:59 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8088 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/job.c
bacula/src/filed/status.c
bacula/src/lib/mem_pool.h
bacula/src/win32/compat/compat.h
bacula/src/win32/dll/bacula.def
bacula/src/win32/filed/Makefile

index 8d0cf550e41306ef81a7f4b7858e6ee4ca6fb821..e258fce8adfc309569d4825c2ae1531bb1796538 100644 (file)
@@ -1267,7 +1267,7 @@ static int level_cmd(JCR *jcr)
          goto bail_out;
       }
       since_time = str_to_uint64(buf);  /* this is the since time */
-      Dmsg1(100, "since_time=%d\n", (int)since_time);
+      Dmsg1(100, "since_time=%lld\n", since_time);
       char ed1[50], ed2[50];
       /*
        * Sync clocks by polling him for the time. We take
@@ -1309,10 +1309,10 @@ static int level_cmd(JCR *jcr)
       }
       dir->signal(BNET_EOD);
 
-      Dmsg2(100, "adj = %d since_time=%d\n", (int)adj, (int)since_time);
+      Dmsg2(100, "adj = %d since_time=%lld\n", (int)adj, since_time);
       jcr->incremental = 1;           /* set incremental or decremental backup */
-      jcr->mtime = (time_t)since_time; /* set since time */
-      generate_plugin_event(jcr, bEventSince, (void *)jcr->mtime);
+      jcr->mtime = since_time;        /* set since time */
+      generate_plugin_event(jcr, bEventSince, (void *)(time_t)jcr->mtime);
    } else {
       Jmsg1(jcr, M_FATAL, 0, _("Unknown backup level: %s\n"), level);
       free_memory(level);
index aa55a8732327e2a01bd2d8f4adddcb84d98a83d9..4ee3c136851244021876c51cc95821c00e69f84a 100644 (file)
@@ -340,8 +340,8 @@ static void sendit(const char *msg, int len, STATUS_PKT *sp)
 {
    if (sp->bs) {
       BSOCK *user = sp->bs;
-     
-      pm_memcpy(user->msg, msg, len+1);
+      user->msg = check_pool_memory_size(user->msg, len+1);
+      memcpy(user->msg, msg, len+1);
       user->msglen = len+1;
       user->send();
    } else {
index abb4daeba30e001eb7d330a863b164d1d1cde373..942e3cd45bff428e090c8e78586ada2d025d0042 100644 (file)
@@ -107,13 +107,15 @@ int pm_strcat(POOLMEM **pm, const char *str);
 int pm_strcat(POOLMEM *&pm, const char *str);
 int pm_strcat(POOL_MEM &pm, const char *str);
 int pm_strcat(POOLMEM *&pm, POOL_MEM &str);
+
 int pm_strcpy(POOLMEM **pm, const char *str);
 int pm_strcpy(POOLMEM *&pm, const char *str);
 int pm_strcpy(POOL_MEM &pm, const char *str);
 int pm_strcpy(POOLMEM *&pm, POOL_MEM &str);
-int pm_memcpy(POOLMEM **pm, const void *data, size_t n);
-int pm_memcpy(POOLMEM *&pm, const void *data, size_t n);
-int pm_memcpy(POOL_MEM &pm, const void *data, size_t n);
+
+int pm_memcpy(POOLMEM **pm, const char *data, size_t n);
+int pm_memcpy(POOLMEM *&pm, const char *data, size_t n);
+int pm_memcpy(POOL_MEM &pm, const char *data, size_t n);
 int pm_memcpy(POOLMEM *&pm, POOL_MEM &data, size_t n);
 
 #endif
index e79ef5419fcd0d58f4cce38a60c62c469a2a1ef2..4dced17c191ac6e35438288712da1a57897ca61d 100644 (file)
@@ -106,6 +106,7 @@ typedef UINT32 uid_t;
 typedef UINT32 gid_t;
 typedef UINT32 mode_t;
 typedef INT32  ssize_t;
+typedef UINT32 size_t;
 #define HAVE_SSIZE_T 1
 
 #endif /* HAVE_MINGW */
index e3c28296a2bf1a3acf911c4330f95a173d8f96a6..f029780ee57ea4f390edb502782fd12e8d05f769 100644 (file)
@@ -559,6 +559,10 @@ _Z9pm_strcpyPPcPKc
 _Z9pm_strcpyR8POOL_MEMPKc
 _Z9pm_strcpyRPcPKc
 _Z9pm_strcpyRPcR8POOL_MEM
+_Z9pm_memcpyPPcPKvj
+_Z9pm_memcpyR8POOL_MEMPKvj
+_Z9pm_memcpyRPcPKvj
+_Z9pm_memcpyRPcR8POOL_MEMj
 _ZN8POOL_MEM10realloc_pmEi
 _ZN8POOL_MEM6strcatEPKc
 _ZN8POOL_MEM6strcpyEPKc
@@ -576,6 +580,7 @@ _Z16dispatch_messageP3JCRixPc
 _Z16init_console_msgPKc
 _Z25register_message_callbackPFviPcE
 _Z4JmsgP3JCRixPKcz
+_Z4MmsgPPcPKcz
 _Z4MmsgR8POOL_MEMPKcz
 _Z4MmsgRPcPKcz
 _Z4QmsgP3JCRixPKcz
index 8d12c955df0cb64b1a11cc25762a3d8bd7813f13..5f262938805727beeb03a1f336c5256b7c9ac8a0 100644 (file)
@@ -51,6 +51,7 @@ FILED_OBJS = \
        $(OBJDIR)/service.o \
        $(OBJDIR)/statusDialog.o \
        $(OBJDIR)/trayMonitor.o \
+       $(OBJDIR)/xattr.o \
        $(OBJDIR)/main.o \
        $(OBJDIR)/bacula.res