Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
fontconfig
freetype
harfbuzz
libotf
cairo
pango
glib
Expand Down Expand Up @@ -86,6 +85,7 @@
# is Rust. Keep libstdc++ in both the package and development runtime
# closure so freshly linked bootstrap executables are runnable.
stdenv.cc.cc.lib
libotf
alsa-lib
gst_all_1.gst-vaapi
libva
Expand Down Expand Up @@ -117,6 +117,11 @@
pkgs.pkg-config
pkgs.llvmPackages.clang
pkgs.makeWrapper
] ++ lib.optionals pkgs.stdenv.isDarwin [
# xtask's fresh-build pipeline re-signs role binaries after patching
# the pdump fingerprint (xtask/src/main.rs:657). `codesign` isn't on
# PATH in the Nix sandbox; sigtool provides a compatible shim.
pkgs.darwin.sigtool
];

mkNeomacsPackage = system:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn open(path: &OsStr) -> io::Result<Device> {
// src/sysdep.c:2985-2987): a port that does not support it is still usable.
// SAFETY: `TIOCEXCL` takes no pointer argument.
unsafe {
libc::ioctl(fd.as_raw_fd(), libc::TIOCEXCL, 0 as libc::c_int);
libc::ioctl(fd.as_raw_fd(), libc::TIOCEXCL as _, 0 as libc::c_int);
}
Ok(Device { fd })
}
Expand Down
2 changes: 1 addition & 1 deletion neovm-core/src/emacs_core/process/sys/tty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub unsafe fn establish_pty_controlling_terminal(tty: &std::ffi::CStr) -> std::i
pub fn fd_foreground_pgrp(fd: RawFd) -> Option<i32> {
let mut gid: libc::pid_t = -1;
// SAFETY: `TIOCGPGRP` writes the pgrp through the provided `&mut gid`.
let ok = unsafe { libc::ioctl(fd, libc::TIOCGPGRP, &mut gid) } != -1;
let ok = unsafe { libc::ioctl(fd, libc::TIOCGPGRP as _, &mut gid) } != -1;
(ok && gid != -1).then_some(gid)
}

Expand Down