{"action":"opened","issue":{"url":"https://api.github.com/repos/byzhang/leveldb/issues/243","labels_url":"https://api.github.com/repos/byzhang/leveldb/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/byzhang/leveldb/issues/243/comments","events_url":"https://api.github.com/repos/byzhang/leveldb/issues/243/events","html_url":"https://github.com/byzhang/leveldb/issues/243","id":59730543,"number":243,"title":"define PLATFORM_IS_LITTLE_ENDIAN on BSD's correctly","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/byzhang/leveldb/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/byzhang/leveldb/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-04T00:19:43Z","updated_at":"2015-03-04T00:19:43Z","closed_at":null,"body":"```\ndefine PLATFORM_IS_LITTLE_ENDIAN on BSD's correctly\n\nWhat steps will reproduce the problem?\n1. Try to build on NetBSD/DragonflyBSD/OpenBSD\n\nWhat is the expected output? \nA successfull build.\n\nWhat do you see instead?\n\n/port/port_posix.h:67:35: error: '__BYTE_ORDER' was not declared in this scope\n./port/port_posix.h:67:35: error: '__LITTLE_ENDIAN' was not declared in this \nscope\n\nWhat version of the product are you using? On what operating system?\n\nOpenBSD -current\n\n\nPlease provide any additional information below.\n\nThis will also fixes:\n\nIssue 137 (NetBSD) https://code.google.com/p/leveldb/issues/detail?id=137\nIssue 192 (DragonflyBSD) https://code.google.com/p/leveldb/issues/detail?id=192\n\n\nThanks in advance,\nFabian Raetz\n```\n\nOriginal issue reported on code.google.com by `fabian.r...@gmail.com` on 30 Jun 2014 at 2:00\n\nAttachments:\n* [leveldb-upstream-little-endian.patch](https://storage.googleapis.com/google-code-attachments/leveldb/issue-243/comment-0/leveldb-upstream-little-endian.patch)\n"}}