Skip to content

Commit

Permalink
pkgs.support.twincat-ads: fix missing header with gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Aug 2, 2024
1 parent ef68b80 commit 7413e22
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/epnix/support/twincat-ads/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ mkEpicsPackage rec {
sha256 = "sha256-f7hod1N1AzCh+W7nHl9VCA+nuwpJAboSh19Dq80n/2E=";
};

# See: https://gitlab.esss.lu.se/epics-modules/epics-twincat-ads/-/issues/2
patches = [./fix-missing-header.patch];

propagatedBuildInputs = with epnix.support; [asyn calc];

preBuild = ''
Expand Down
13 changes: 13 additions & 0 deletions pkgs/epnix/support/twincat-ads/fix-missing-header.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/BeckhoffADS/AdsLib/AdsLib.cpp b/BeckhoffADS/AdsLib/AdsLib.cpp
index f1b2116..8a82a95 100644
--- a/BeckhoffADS/AdsLib/AdsLib.cpp
+++ b/BeckhoffADS/AdsLib/AdsLib.cpp
@@ -20,6 +20,8 @@
SOFTWARE.
*/

+#include <stdexcept>
+
#include "AdsLib.h"
#include "AmsRouter.h"

0 comments on commit 7413e22

Please sign in to comment.