include: Move sarg.c stuff to nsc.h to avoid incomplete enum
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 30 Dec 2020 16:04:12 +0000 (17:04 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:29 +0000 (21:24 +0100)
commit259200777e6fddc24a0ae2914f4c78fecd301980
tree1408905325ed32b20374b5da9f79c7e858e48b87
parent528d644f02f84eb3b5fbdce11659ff484bdd4e4a
include: Move sarg.c stuff to nsc.h to avoid incomplete enum

Portability issue: prototypes.h uses enum ns_seltype, defined in
nsc.h.  GCC is fine with that; it supports incomplete enum types as an
extension.  Broken in commit 157ae8ec2 "Clean up superfluous include
of nsc.h in prototypes.h", v4.3.27.  Moving sarg.c stuff to nsc.h
fixes it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/nsc.h
include/prototypes.h