Skip to content

Commit

Permalink
lang/gnu-apl: try to fix the port's build on recent -CURRENT
Browse files Browse the repository at this point in the history
Use modern smart pointer class `std::unique_ptr' instead of
the deprecated in C++11 and removed in C++17 `std::auto_ptr'.

Reported by:	pkg-fallout
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Jul 8, 2023
1 parent 16c9688 commit 9a5b728
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lang/gnu-apl/Makefile
Expand Up @@ -49,6 +49,9 @@ SQLITE_CONFIGURE_WITH= sqlite3=${LOCALBASE}
post-patch:
@${REINPLACE_CMD} -e '25s,^,#include <sys/socket.h>,' \
${WRKSRC}/src/Common.hh
@${REINPLACE_CMD} -e 's,auto_ptr,unique_ptr,' \
${WRKSRC}/src/emacs_mode/network.cc \
${WRKSRC}/src/sql/apl-sqlite.cc
@${REINPLACE_CMD} -e 's,bind(,::&,' \
${WRKSRC}/src/emacs_mode/TcpListener.cc \
${WRKSRC}/src/emacs_mode/UnixSocketListener.cc
Expand Down

0 comments on commit 9a5b728

Please sign in to comment.