Skip to content

build: Enable FreeBSD support

Nakayama Kenjiro requested to merge nak3/ns-3-dev:fix-freebsd into master

Currently freebsd creates .lock-ns3_linux_build when running ./ns3 configure. The relevant implementation can be found in the following files:

  • build-support/custom-modules/ns3-platform-support.cmake
  • build-support/custom-modules/ns3-lock.cmake

However, ns3 uses Python's sys.platform to determine the lock file name, which results in .lock-ns3_freebsd14_build for FreeBSD 14.

This patch modifies the ns3 to use "freebsd" for the FreeBSD. Also, this patch includes two tweaks to support FreeBSD - adding socket.h header file and disabling unsupported features.

Edited by Nakayama Kenjiro

Merge request reports

Loading