title: missing locale_t
body: <p>Installing gtk 1.2 (package name gtk1) with macports chokes on the final make, in libintl.h line 440. </p>
  
  <pre><code>extern locale_t libintl_newlocale (junk, stuff, stuff)
  </code></pre>
  
  <p>The compiler can't find locale_t, and I'm not doing any better.</p>
  
  <p>The file imports locale.h, which doesn't exist, and xlocale.h, which doesn't define this type.</p>
  
  <p>Where should locale_t be defined? This might be as easy as a missed dependency, but I don't know what is missing.</p>
  
  <p>By request, here is xlocale.h, minus the copyright, which is the Open Group's.</p>
  
  <pre><code>#include &lt;X11/Xfuncproto.h&gt;
  #include &lt;X11/Xosdefs.h&gt;
  
  #ifndef X_LOCALE
  #include &lt;locale.h&gt;
  #else
  
  #define LC_ALL      0
  #define LC_COLLATE  1
  #define LC_CTYPE    2
  #define LC_MONETARY 3
  #define LC_NUMERIC  4
  #define LC_TIME     5
  
  _XFUNCPROTOBEGIN
      extern char *_Xsetlocale(
      int /* category */,
      _Xconst char* /* name */
  );
  _XFUNCPROTOEND
  
  #define setlocale _Xsetlocale
  
  #include &lt;stddef.h&gt;
  
  #endif /* X_LOCALE */
  </code></pre>