Created attachment 62860 [details] [review]
Patch fixing the compilation issue.
Compilation of sessreg-1.0.7 on NetBSD-6.99.7/amd64 fails with:
--- sessreg.o ---
sessreg.c:257:16: error: use of undeclared identifier 'WTMPX_FILE'
wtmpx_file = WTMPX_FILE;
sessreg.c:264:16: error: use of undeclared identifier 'UTMPX_FILE'
utmpx_file = UTMPX_FILE;
NetBSD supports utmpx and wtmpx but does not provide these defines. Similar defines exist though, _PATH_WTMPX and _PATH_UTMPX. The attach patch serves as a workaround; a more complete solution might add checks to configure for them (not provided).
Please submit your patch to xorg-devel for review if you haven't already.
Also, please fix the mime type to be text/plain on future attachments.
Fix pushed to git master:
Thanks for the patch.