summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/fex/files/fex-0.8.18-gcc4.patch')
-rw-r--r--net-fs/fex/files/fex-0.8.18-gcc4.patch99
1 files changed, 99 insertions, 0 deletions
diff --git a/net-fs/fex/files/fex-0.8.18-gcc4.patch b/net-fs/fex/files/fex-0.8.18-gcc4.patch
new file mode 100644
index 000000000000..00147faaea6f
--- /dev/null
+++ b/net-fs/fex/files/fex-0.8.18-gcc4.patch
@@ -0,0 +1,99 @@
+diff -Naur fex-0.8.18-orig/src/client.cpp fex-0.8.18/src/client.cpp
+--- fex-0.8.18-orig/src/client.cpp 2004-12-19 17:49:45.000000000 -0600
++++ fex-0.8.18/src/client.cpp 2007-12-28 21:03:30.000000000 -0600
+@@ -53,7 +53,7 @@
+ {
+ lc.info("start fullsync");
+ parent().write(fex_header(ME_FullSyncStart));
+- parent().wp()->createStateFile((unsigned)this, &_M_ClientFile);
++ parent().wp()->createStateFile((unsigned long)this, &_M_ClientFile);
+ }
+
+ void FullSyncDialog::
+diff -Naur fex-0.8.18-orig/src/dialog.cpp fex-0.8.18/src/dialog.cpp
+--- fex-0.8.18-orig/src/dialog.cpp 2005-05-11 10:20:52.000000000 -0600
++++ fex-0.8.18/src/dialog.cpp 2007-12-28 21:03:58.000000000 -0600
+@@ -224,7 +224,7 @@
+ ModLog::iterator i;
+ for(i = _M_Log.begin(); i != _M_Log.end(); i++) {
+ if (! FileListener::get().lock(parent().wp()->path() + i->first.str(),
+- (unsigned int)&parent())) {
++ (unsigned long)&parent())) {
+ ModLog::iterator j;
+ for(j = _M_Log.begin(); j != i; j++) {
+ FileListener::get().unlock(parent().wp(),
+diff -Naur fex-0.8.18-orig/src/filelistener.cpp fex-0.8.18/src/filelistener.cpp
+--- fex-0.8.18-orig/src/filelistener.cpp 2005-06-07 09:49:06.000000000 -0600
++++ fex-0.8.18/src/filelistener.cpp 2007-12-28 21:04:42.000000000 -0600
+@@ -355,7 +355,7 @@
+
+ _M_FDBuffer[0].reserve(MinFDBufferSize);
+ _M_FDBuffer[1].reserve(MinFDBufferSize);
+- _S_SignalBuffer = (int)&_M_FDBuffer[0];
++ _S_SignalBuffer = (long)&_M_FDBuffer[0];
+ _M_ReadBuffer = &_M_FDBuffer[1];
+
+ assert(! _S_WakeUpPipe.first);
+@@ -439,7 +439,7 @@
+ typedef FileListener::FileEvent::reqs_m::iterator iterator;
+
+ _M_ReadBuffer->reserve(_M_Handler->size() + MinFDBufferSize);
+- _S_SignalBuffer = (int)_M_ReadBuffer;
++ _S_SignalBuffer = (long)_M_ReadBuffer;
+ _M_ReadBuffer = &_M_FDBuffer[_M_ReadBuffer == &_M_FDBuffer[0] ? 1 : 0];
+
+ if (_S_RenewAll) {
+diff -Naur fex-0.8.18-orig/src/nmstl/netioevent fex-0.8.18/src/nmstl/netioevent
+--- fex-0.8.18-orig/src/nmstl/netioevent 2004-12-12 16:34:50.000000000 -0600
++++ fex-0.8.18/src/nmstl/netioevent 2007-12-28 21:05:51.000000000 -0600
+@@ -138,7 +138,7 @@
+ io_handler::set_ioh;
+
+ private:
+- inline void tcp_acceptor::ravail() {
++ inline void ravail() {
+ address a;
+ tcpsocket ioh = sock.accept(a);
+ if (ioh) {
+@@ -168,7 +168,7 @@
+ virtual ~tcp_acceptor() {}
+
+ protected:
+- inline void tcp_acceptor::ravail() {
++ inline void ravail() {
+ address a;
+ tcpsocket ioh = sock.accept(a);
+ if (ioh) {
+diff -Naur fex-0.8.18-orig/src/server.cpp fex-0.8.18/src/server.cpp
+--- fex-0.8.18-orig/src/server.cpp 2004-12-19 17:51:23.000000000 -0600
++++ fex-0.8.18/src/server.cpp 2007-12-28 21:06:27.000000000 -0600
+@@ -81,7 +81,7 @@
+ sendStatFile()
+ {
+ size_t size;
+- size = parent().wp()->createStateFile((unsigned)this, &_M_StateFile);
++ size = parent().wp()->createStateFile((unsigned long)this, &_M_StateFile);
+ omessage msg;
+ msg << _M_StateFile << size;
+ write(fex_header(ME_FullSyncState), msg);
+diff -Naur fex-0.8.18-orig/src/watchpoint.cpp fex-0.8.18/src/watchpoint.cpp
+--- fex-0.8.18-orig/src/watchpoint.cpp 2004-12-27 08:40:40.000000000 -0600
++++ fex-0.8.18/src/watchpoint.cpp 2007-12-28 21:07:31.000000000 -0600
+@@ -188,7 +188,7 @@
+ unsigned int lock_id,
+ bool do_sync)
+ {
+- if (lock_id == (unsigned int)this)
++ if (lock_id == (unsigned long)this)
+ return;
+
+ pair<ModLog::iterator, bool> res = _M_WriteLog->insert(key, state);
+@@ -327,7 +327,7 @@
+ save_state()
+ {
+ if (_M_Mode >= MO_fullsynched)
+- wp()->createStateFile((unsigned)this, NULL);
++ wp()->createStateFile((unsigned long)this, NULL);
+ }
+
+