Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation on fedora 39 - aarch64 #7

Closed
wants to merge 1 commit into from

Conversation

Gbillou
Copy link

@Gbillou Gbillou commented Jan 2, 2024

Issue

Compilation fails on mac m1 pro running asahi linux with the following error:

CXX(target) Release/obj.target/os_dns_native/binding.o
../binding.cc: In constructor ‘{anonymous}::ResourceRecord::ResourceRecord(ns_msg*, size_t)’:
../binding.cc:85:16: error: ‘runtime_error’ is not a member of ‘std’
   85 |     throw std::runtime_error(
      |                ^~~~~~~~~~~~~
../binding.cc:8:1: note: ‘std::runtime_error’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
    7 | #include <resolv.h>
  +++ |+#include <stdexcept>
    8 | 

Description

This blindly applies the suggested fix which works.

@Gbillou Gbillou closed this Jan 4, 2024
@Gbillou
Copy link
Author

Gbillou commented Jan 4, 2024

Duplicate of #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant