LLMs are getting real good indeed
Inspired by https://sourcegraph.com/blog/revenge-of-the-junior-developer post (and previous ones).
Tried their Cody agent to fix a problem I had with SSHguard not building on OmniOS - and fixed it all in less than 5 minutes.
Explanation
The LOG_PERROR flag is defined in some Unix-like systems but not in others. OmniOS appears to be one of the systems where it's not defined. The patch adds a preprocessor conditional check to only use LOG_PERROR if it's defined in the system's headers.
This is a common issue when building software across different Unix variants, as not all systems implement the same set of features or define the same constants.
After applying this fix, SSHGuard should compile successfully on your OmniOS system.
What was I doing before, AI in this case did much better than me and the package maintainer too 🙃
