How does one get the name of the computer on macOS with Delphi?
I am trying to automatically get and display the computer's name in my application but cannot seem to get it working on macOS. I have it working on Windows but can not get it working on macOS.
CodePudding user response:
this lib support WIN and linux, it may work with macOS ...
https://github.com/RRUZ/tsmbios
CodePudding user response:
use gethostname() in the Posix.UniStd unit