> I have no preference whatsoever; just whatever is easier in practice. That works for me :) - we can always adjust later if I hear some more comments. Here is what I ended up checking-in (I used the opportunity to add a little comment explaining why the function is needed, as well as grouping the two LDT-related functions in procfs.c together). 2008-02-12 Joel Brobecker * sol-thread.c: Replace use of TM_I386SOL2_H by an expression that is true only on x86-solaris and x86_64-solaris. * procfs.c: Likewise. Move procfs_find_LDT_entry up together with proc_get_LDT_entry. Tested on x86-solaris, no regression. Applied to head and branch. Thanks! -- Joel