ports/x11-wm/wmanager/files/patch-src__WManager.cc
Dmitry Marakasov 6ccd896415 - Add LICENSE
- Switch to options helpers
2016-11-08 09:00:13 +00:00

41 lines
1.4 KiB
C++

--- src/WManager.cc.orig 1999-11-14 15:28:36 UTC
+++ src/WManager.cc
@@ -24,8 +24,12 @@
// SYSTEM INCLUDES /////////////////////////////////
#include <string> // standard string class
#include <fstream> // file streams
+#include <cstdlib> // 'exit'
#include <cstring> // only for 'strtok'
+#include <iostream>
#include <pwd.h> // for home directory
+#include <unistd.h>
+#include <sys/types.h>
// PROJECT INCLUDES ////////////////////////////////
@@ -36,6 +40,7 @@
// LOCAL INCLUDES //////////////////////////////////
#include <FL/fl_message.H> // message window
+using namespace std;
// constructor
WManager::WManager()
@@ -302,7 +307,7 @@ WManager::_TokenizeAndAddToBrowser(char*
} else {
fl_alert("Error near %s while parsing configuration file %s!"
"Try to read on...",
- name->c_str(), _ConfigurationFilename);
+ name->c_str(), _ConfigurationFilename->c_str());
} // end if
} // end if
}
@@ -310,7 +315,7 @@ WManager::_TokenizeAndAddToBrowser(char*
// cut rest from the beginning of str
char*
-WManager::_CutString(char* str, char* rest)
+WManager::_CutString(const char* str, const char* rest)
{
int i = 0;
int n = 0;