{"action":"created","issue":{"url":"https://api.github.com/repos/przemoc/metastore/issues/21","labels_url":"https://api.github.com/repos/przemoc/metastore/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/przemoc/metastore/issues/21/comments","events_url":"https://api.github.com/repos/przemoc/metastore/issues/21/events","html_url":"https://github.com/przemoc/metastore/issues/21","id":53293511,"number":21,"title":"had to change the include for xattr.h, and add an include for errno.h","user":{"login":"kmdawson","id":8516755,"avatar_url":"https://avatars.githubusercontent.com/u/8516755?v=3","gravatar_id":"","url":"https://api.github.com/users/kmdawson","html_url":"https://github.com/kmdawson","followers_url":"https://api.github.com/users/kmdawson/followers","following_url":"https://api.github.com/users/kmdawson/following{/other_user}","gists_url":"https://api.github.com/users/kmdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/kmdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmdawson/subscriptions","organizations_url":"https://api.github.com/users/kmdawson/orgs","repos_url":"https://api.github.com/users/kmdawson/repos","events_url":"https://api.github.com/users/kmdawson/events{/privacy}","received_events_url":"https://api.github.com/users/kmdawson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-03T04:08:18Z","updated_at":"2015-01-04T06:59:50Z","closed_at":"2015-01-04T06:59:50Z","body":"In building metastore (on Fedora 20) I found that the include line for xattr.h triggered a nosuch file or directory response.  Looking in a number of man pages, and the book \"The Linux Programming Interface\", by Michael Kerrisk, I found an alternate location, which worked properly for me.\r\n\r\nAdditionally, I needed to add an include for errno.h.\r\n\r\nBoth of these files are installed by the glibc-headers-* packages.\r\n\r\nI couldn't determine on what distros the location <attr/xattr.h> is correct. \r\n\r\nThanks for your attention.\r\n\r\n/ken\r\n\r\nThe patch is:\r\n\r\n```diff\r\ndiff --git a/metaentry.c b/metaentry.c\r\nindex b0ea69d..02e5bb8 100644\r\n--- a/metaentry.c\r\n+++ b/metaentry.c\r\n@@ -25,13 +25,14 @@\r\n #include <sys/types.h>\r\n #include <sys/stat.h>\r\n #include <unistd.h>\r\n-#include <attr/xattr.h>\r\n+#include <sys/xattr.h>\r\n #include <limits.h>\r\n #include <dirent.h>\r\n #include <sys/mman.h>\r\n #include <utime.h>\r\n #include <fcntl.h>\r\n #include <stdint.h>\r\n+#include <errno.h>\r\n \r\n #include \"metastore.h\"\r\n #include \"metaentry.h\"\r\ndiff --git a/metastore.c b/metastore.c\r\nindex de1bf07..0a49e3f 100644\r\n--- a/metastore.c\r\n+++ b/metastore.c\r\n@@ -23,10 +23,11 @@\r\n #include <sys/stat.h>\r\n #include <getopt.h>\r\n #include <utime.h>\r\n-#include <attr/xattr.h>\r\n+#include <sys/xattr.h>\r\n #include <stdlib.h>\r\n #include <string.h>\r\n #include <unistd.h>\r\n+#include <errno.h>\r\n \r\n #include \"metastore.h\"\r\n #include \"settings.h\"\r\n```"},"comment":{"url":"https://api.github.com/repos/przemoc/metastore/issues/comments/68623529","html_url":"https://github.com/przemoc/metastore/issues/21#issuecomment-68623529","issue_url":"https://api.github.com/repos/przemoc/metastore/issues/21","id":68623529,"user":{"login":"kmdawson","id":8516755,"avatar_url":"https://avatars.githubusercontent.com/u/8516755?v=3","gravatar_id":"","url":"https://api.github.com/users/kmdawson","html_url":"https://github.com/kmdawson","followers_url":"https://api.github.com/users/kmdawson/followers","following_url":"https://api.github.com/users/kmdawson/following{/other_user}","gists_url":"https://api.github.com/users/kmdawson/gists{/gist_id}","starred_url":"https://api.github.com/users/kmdawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmdawson/subscriptions","organizations_url":"https://api.github.com/users/kmdawson/orgs","repos_url":"https://api.github.com/users/kmdawson/repos","events_url":"https://api.github.com/users/kmdawson/events{/privacy}","received_events_url":"https://api.github.com/users/kmdawson/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T06:59:50Z","updated_at":"2015-01-04T06:59:50Z","body":"Thanks for fixing that up; I'm new to Github protocol.  Read up on GFM, so won't do that again."}}