{"action":"created","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/423","labels_url":"https://api.github.com/repos/google/protobuf/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/423/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/423/events","html_url":"https://github.com/google/protobuf/issues/423","id":80549913,"number":423,"title":"compilation failure in compiler: command_line_interface.cc","user":{"login":"gdamore","id":1295229,"avatar_url":"https://avatars.githubusercontent.com/u/1295229?v=3","gravatar_id":"","url":"https://api.github.com/users/gdamore","html_url":"https://github.com/gdamore","followers_url":"https://api.github.com/users/gdamore/followers","following_url":"https://api.github.com/users/gdamore/following{/other_user}","gists_url":"https://api.github.com/users/gdamore/gists{/gist_id}","starred_url":"https://api.github.com/users/gdamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdamore/subscriptions","organizations_url":"https://api.github.com/users/gdamore/orgs","repos_url":"https://api.github.com/users/gdamore/repos","events_url":"https://api.github.com/users/gdamore/events{/privacy}","received_events_url":"https://api.github.com/users/gdamore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-25T14:13:48Z","updated_at":"2015-05-25T14:22:07Z","closed_at":null,"body":"The compile fails due to undefined PATH_MAX on smartos/illumos (Solaris derived) systems.  POSIX says this symbol belongs in llimits.h, and adding that include allowed the compile to proceed.  Diff below:\r\n\r\n```\r\n--- a/src/google/protobuf/compiler/command_line_interface.cc\r\n+++ b/src/google/protobuf/compiler/command_line_interface.cc\r\n@@ -38,6 +38,7 @@\r\n #include <sys/types.h>\r\n #include <sys/stat.h>\r\n #include <fcntl.h>\r\n+#include <limits.h>\r\n #ifdef _MSC_VER\r\n #include <io.h>\r\n #include <direct.h>\r\n```"},"comment":{"url":"https://api.github.com/repos/google/protobuf/issues/comments/105242410","html_url":"https://github.com/google/protobuf/issues/423#issuecomment-105242410","issue_url":"https://api.github.com/repos/google/protobuf/issues/423","id":105242410,"user":{"login":"gdamore","id":1295229,"avatar_url":"https://avatars.githubusercontent.com/u/1295229?v=3","gravatar_id":"","url":"https://api.github.com/users/gdamore","html_url":"https://github.com/gdamore","followers_url":"https://api.github.com/users/gdamore/followers","following_url":"https://api.github.com/users/gdamore/following{/other_user}","gists_url":"https://api.github.com/users/gdamore/gists{/gist_id}","starred_url":"https://api.github.com/users/gdamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdamore/subscriptions","organizations_url":"https://api.github.com/users/gdamore/orgs","repos_url":"https://api.github.com/users/gdamore/repos","events_url":"https://api.github.com/users/gdamore/events{/privacy}","received_events_url":"https://api.github.com/users/gdamore/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T14:22:07Z","updated_at":"2015-05-25T14:22:07Z","body":"A similar problem occurs in the objective C compiler, where INT_MIN and LLONG_MIN definitions are missing.  Again, the solution is to supply limits.h."}}