mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Fixed compilation with recent changes on Linux.
This commit is contained in:
@@ -594,7 +594,7 @@ int complete_is_valid_option( const wchar_t *str,
|
|||||||
{
|
{
|
||||||
|
|
||||||
//PCA Rewrite this
|
//PCA Rewrite this
|
||||||
wchar_t *str_pos = wcschr(i->short_opt_str.c_str(), *a);
|
wchar_t *str_pos = const_cast<wchar_t*>(wcschr(i->short_opt_str.c_str(), *a));
|
||||||
|
|
||||||
if (str_pos )
|
if (str_pos )
|
||||||
{
|
{
|
||||||
|
|||||||
3
event.h
3
event.h
@@ -12,8 +12,9 @@
|
|||||||
#ifndef FISH_EVENT_H
|
#ifndef FISH_EVENT_H
|
||||||
#define FISH_EVENT_H
|
#define FISH_EVENT_H
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "event.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The signal number that is used to match any signal
|
The signal number that is used to match any signal
|
||||||
|
|||||||
3
exec.cpp
3
exec.cpp
@@ -25,6 +25,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#ifdef HAVE_SIGINFO_H
|
#ifdef HAVE_SIGINFO_H
|
||||||
#include <siginfo.h>
|
#include <siginfo.h>
|
||||||
@@ -128,7 +129,7 @@ void exec_close( int fd )
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Maybe remove this form our set of open fds */
|
/* Maybe remove this form our set of open fds */
|
||||||
open_fds.erase(remove(open_fds.begin(), open_fds.end(), fd), open_fds.end());
|
open_fds.erase(std::remove(open_fds.begin(), open_fds.end(), fd), open_fds.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
int exec_pipe( int fd[2])
|
int exec_pipe( int fd[2])
|
||||||
|
|||||||
Reference in New Issue
Block a user