diff --git a/pidl/lib/Parse/Pidl/Samba3/Template.pm b/pidl/lib/Parse/Pidl/Samba3/Template.pm index c8fcf089541..53e6a320e7c 100644 --- a/pidl/lib/Parse/Pidl/Samba3/Template.pm +++ b/pidl/lib/Parse/Pidl/Samba3/Template.pm @@ -74,6 +74,8 @@ $pad"."struct $fname *r) $res .= "\treturn WERR_NOT_SUPPORTED;\n"; } elsif ($d->{RETURN_TYPE} eq "HRESULT") { $res .= "\treturn HRES_ERROR_NOT_SUPPORTED;\n"; + } elsif ($d->{RETURN_TYPE} eq "int") { + $res .= "\treturn ENOTSUP;\n"; } $res .= "}