Skip to content

Commit

Permalink
make the C compiler happy when a job is not available
Browse files Browse the repository at this point in the history
Ignore-this: 766ca5e9b5307dc42533daf6dd8ee2d8

darcs-hash:20120719112748-c41ad-f4096368a355c432b73b4869656b8b02f627b1f8
  • Loading branch information
jeremiedimino committed Jul 19, 2012
1 parent f9cc903 commit a4bec55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/gen_stubs.ml
Original file line number Diff line number Diff line change
Expand Up @@ -702,12 +702,14 @@ module MakeGen(Gen64 : Generator)(Params : Params) = struct
pr "CAMLprim value lwt_unix_%s_job()\n" job.name;
pr "{\n";
pr " lwt_unix_not_available(%S);\n" job.name;
pr " return Val_unit;\n";
pr "}\n";
pr "\n";
if map_in_64 || map_out_64 || map_result_64 then begin
pr "CAMLprim value lwt_unix_%s_64_job()\n" job.name;
pr "{\n";
pr " lwt_unix_not_available(%S);\n" job.name;
pr " return Val_unit;\n";
pr "}\n";
pr "\n";
end;
Expand Down

0 comments on commit a4bec55

Please sign in to comment.