add missing includes for ports-gcc
This commit is contained in:
parent
9b65615222
commit
ba311a9209
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.26 2018/11/11 18:35:20 bentley Exp $
|
||||
# $OpenBSD: Makefile,v 1.27 2018/12/02 17:56:34 naddy Exp $
|
||||
|
||||
COMMENT= window manager improved - key driven window manager
|
||||
|
||||
DISTNAME= wmi-10
|
||||
REVISION = 10
|
||||
REVISION = 11
|
||||
CATEGORIES= x11
|
||||
|
||||
# MIT
|
||||
|
16
x11/wmi/patches/patch-src_logger_cpp
Normal file
16
x11/wmi/patches/patch-src_logger_cpp
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_logger_cpp,v 1.1 2018/12/02 17:56:34 naddy Exp $
|
||||
|
||||
Index: src/logger.cpp
|
||||
--- src/logger.cpp.orig
|
||||
+++ src/logger.cpp
|
||||
@@ -5,6 +5,10 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
+extern "C" {
|
||||
+#include <stdlib.h>
|
||||
+}
|
||||
+
|
||||
#include "logger.h"
|
||||
#include "util.h"
|
||||
|
13
x11/wmi/patches/patch-src_main_cpp
Normal file
13
x11/wmi/patches/patch-src_main_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_main_cpp,v 1.1 2018/12/02 17:56:34 naddy Exp $
|
||||
|
||||
Index: src/main.cpp
|
||||
--- src/main.cpp.orig
|
||||
+++ src/main.cpp
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
#include <assert.h>
|
||||
#include <unistd.h> // getopt stuff
|
||||
#include <stdlib.h> // getenv stuff
|
||||
+#include <string.h> // strlen stuff
|
||||
#include <X11/Xlib.h>
|
||||
}
|
||||
|
@ -1,18 +1,19 @@
|
||||
$OpenBSD: patch-src_util_cpp,v 1.2 2015/03/21 19:47:36 jca Exp $
|
||||
$OpenBSD: patch-src_util_cpp,v 1.3 2018/12/02 17:56:34 naddy Exp $
|
||||
|
||||
find_first_of returns npos, which is a size_t.
|
||||
|
||||
--- src/util.cpp.orig Mon Sep 27 20:22:51 2004
|
||||
+++ src/util.cpp Tue Feb 24 02:28:48 2015
|
||||
@@ -10,6 +10,7 @@ extern "C" {
|
||||
Index: src/util.cpp
|
||||
--- src/util.cpp.orig
|
||||
+++ src/util.cpp
|
||||
@@ -5,5 +5,7 @@
|
||||
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
+#include <cstddef>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
@@ -59,7 +60,7 @@ string Util::truncate(string str, char c) {
|
||||
extern "C" {
|
||||
+#include <stddef.h>
|
||||
+#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <X11/Xlib.h>
|
||||
}
|
||||
@@ -59,7 +61,7 @@ string Util::truncate(string str, char c) {
|
||||
|
||||
string Util::canonicalDir(string path) {
|
||||
string dir = canonicalPath(path);
|
||||
@ -21,7 +22,7 @@ find_first_of returns npos, which is a size_t.
|
||||
|
||||
pos = dir.find_last_of('/');
|
||||
if (pos != string::npos) {
|
||||
@@ -123,7 +124,7 @@ string Util::encodeEscapes(string str) {
|
||||
@@ -123,7 +125,7 @@ string Util::encodeEscapes(string str) {
|
||||
string Util::lastToken(string str, char delim) {
|
||||
|
||||
string result = "";
|
||||
@ -30,7 +31,7 @@ find_first_of returns npos, which is a size_t.
|
||||
|
||||
if (pos != string::npos) {
|
||||
result = str.substr(pos + 1, str.length() - pos);
|
||||
@@ -381,7 +382,7 @@ string Util::shortenString(string str, unsigned int n)
|
||||
@@ -381,7 +383,7 @@ string Util::shortenString(string str, unsigned int n)
|
||||
|
||||
set<string> Util::stringSplit(string s, string delimiter){
|
||||
set<string> res;
|
||||
|
13
x11/wmi/patches/patch-src_wmiremote_cpp
Normal file
13
x11/wmi/patches/patch-src_wmiremote_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-src_wmiremote_cpp,v 1.1 2018/12/02 17:56:34 naddy Exp $
|
||||
|
||||
Index: src/wmiremote.cpp
|
||||
--- src/wmiremote.cpp.orig
|
||||
+++ src/wmiremote.cpp
|
||||
@@ -6,6 +6,7 @@
|
||||
#include "../version.h"
|
||||
|
||||
extern "C" {
|
||||
+#include <stdlib.h> // exit
|
||||
#include <unistd.h> // getopt stuff
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/Xlib.h>
|
Loading…
x
Reference in New Issue
Block a user